|
|
@ -23,10 +23,16 @@ steps: |
|
|
from_secret: admin_password |
|
|
from_secret: admin_password |
|
|
JWT_SECRET: |
|
|
JWT_SECRET: |
|
|
from_secret: jwt_secret |
|
|
from_secret: jwt_secret |
|
|
|
|
|
DB_PATH: |
|
|
|
|
|
from_secret: db_path |
|
|
|
|
|
UPLOAD_DIR: |
|
|
|
|
|
from_secret: upload_dir |
|
|
|
|
|
CORS_ORIGIN: |
|
|
|
|
|
from_secret: cors_origin |
|
|
commands: |
|
|
commands: |
|
|
- mkdir -p /opt/person-home |
|
|
- mkdir -p /opt/person-home |
|
|
- sudo cp person-home /opt/person-home/person-home |
|
|
- sudo cp person-home /opt/person-home/person-home |
|
|
- sudo sh -c 'pkill -x person-home || true; nohup env ADMIN_PASSWORD=$ADMIN_PASSWORD JWT_SECRET=$JWT_SECRET /opt/person-home/person-home >> /tmp/person-home.log 2>&1 &' |
|
|
- sudo sh -c 'pkill -x person-home || true; nohup env ADMIN_PASSWORD=$ADMIN_PASSWORD JWT_SECRET=$JWT_SECRET DB_PATH=$DB_PATH UPLOAD_DIR=$UPLOAD_DIR CORS_ORIGIN=$CORS_ORIGIN /opt/person-home/person-home >> /tmp/person-home.log 2>&1 &' |
|
|
when: |
|
|
when: |
|
|
branch: main |
|
|
branch: main |
|
|
|
|
|
|
|
|
|