Diagnostic: find node binary and systemd service config on EC2
This commit is contained in:
@@ -145,7 +145,7 @@ jobs:
|
|||||||
if: needs.detect.outputs.migrations == 'true'
|
if: needs.detect.outputs.migrations == 'true'
|
||||||
run: |
|
run: |
|
||||||
cat > /tmp/migrate-params.json << 'PARAMS'
|
cat > /tmp/migrate-params.json << 'PARAMS'
|
||||||
{"commands":["set -e","cd /tmp","rm -rf repo.tar.gz filamenteka","curl -sf -o repo.tar.gz https://git.demirix.dev/dax/Filamenteka/archive/main.tar.gz","tar xzf repo.tar.gz","mkdir -p /home/ubuntu/filamenteka-api/api /home/ubuntu/filamenteka-api/database/migrations","cp -r filamenteka/database/* /home/ubuntu/filamenteka-api/database/","cp filamenteka/api/migrate.js /home/ubuntu/filamenteka-api/api/migrate.js","rm -rf repo.tar.gz filamenteka","echo Migration files:","ls -la /home/ubuntu/filamenteka-api/database/migrations/","NODE_PATH=$(find /usr /home -name node -type f 2>/dev/null | head -1) && echo Found node at: $NODE_PATH && cd /home/ubuntu/filamenteka-api && $NODE_PATH api/migrate.js"]}
|
{"commands":["set -e","cat /etc/systemd/system/node-api.service","which node 2>/dev/null || true","find / -name 'node' -type f 2>/dev/null || true","echo PATH=$PATH"]}
|
||||||
PARAMS
|
PARAMS
|
||||||
CMD_ID=$(aws ssm send-command \
|
CMD_ID=$(aws ssm send-command \
|
||||||
--region $AWS_REGION \
|
--region $AWS_REGION \
|
||||||
|
|||||||
Reference in New Issue
Block a user