1.2 KiB
1, Create folder and change permissions
ssh vectur45@35.201.217.185 "sudo mkdir -p /opt/ && sudo chown -R vectur45:vectur45 /opt/ && sudo chmod 755 /opt/"
ssh vectur45@35.201.217.185 "sudo rm /opt//.env"
- Copy .env to folder scp -i ~/.ssh/vectur45 .env vectur45@35.201.217.185:/opt//.env
ssh -i ~/.ssh/vectur45 vectur45@35.201.217.185
postgresql://admin:PartyHard753!@postgres:5432/line_booking_liff
docker run --rm -it
--network shared-services
-e DATABASE_URL
-v "$PWD:/app" -w /app
node:22-bookworm
bash -lc 'npm ci --omit=dev && npx prisma generate && npm run bootstrap-platform-key'
How to create platform key.
ssh -L 15432:127.0.0.1:5433 vectur45@35.201.217.185
DATABASE_URL='postgresql://admin:PartyHard753!@127.0.0.1:15432/line_booking_liff'
npm run bootstrap-platform-key
lbl_live_9cb97cbe6b1f1623f6a2f7c59a81675603c70e2c7376b52e19b5d011fd184c8a
https://liff.lineapp.vectur45.com/c/vectur-45-sports
curl -sS -X POST "http://127.0.0.1:3011/api/v1/clients/a7bfe275-52f2-42df-9ce8-f99cd21228de/liff-config/publish"
-H "Authorization: Bearer lbl_live_9cb97cbe6b1f1623f6a2f7c59a81675603c70e2c7376b52e19b5d011fd184c8a" | jq .