|
@@ -1,6 +1,7 @@
|
|
|
[program:photoview-ui]
|
|
|
environment=PHOTOVIEW_API_ENDPOINT=http://{{ansible_hostname}}.local:4001/
|
|
|
command=/usr/local/bin/bash -lc "cd /usr/local/src/photoview/ui && npm start"
|
|
|
+directory=/usr/local/src/photoview/ui
|
|
|
autostart=true
|
|
|
autorestart=true
|
|
|
stdout_logfile=/var/log/photoview-ui.log
|
|
@@ -8,8 +9,9 @@ stderr_logfile=/var/log/photoview-ui.err.log
|
|
|
stopsignal=QUIT
|
|
|
|
|
|
[program:photoview-api]
|
|
|
-environment=PHOTOVIEW_DATABASE_DRIVER=postgres,PHOTOVIEW_POSTGRES_URL='postgres://photoview:{{photoview_db_pass}}:localhost@5432/photoview',PHOTOVIEW_LISTEN_IP=0.0.0.0,PHOTOVIEW_LISTEN_PORT=4001,PHOTOVIEW_API_ENDPOINT=http://{{ansible_hostname}}.local:4001/,PHOTOVIEW_UI_ENDPOINT=http://{{ansible_hostname}}.local:1234/,MAPBOX_TOKEN={{mapbox_api_key}},PHOTOVIEW_DEVELOPMENT_MODE=0
|
|
|
+environment=PHOTOVIEW_DATABASE_DRIVER=postgres,PHOTOVIEW_POSTGRES_URL='postgres://photoview:{{photoview_db_pass}}@db.local:5432/photoview',PHOTOVIEW_LISTEN_IP=0.0.0.0,PHOTOVIEW_LISTEN_PORT=4001,PHOTOVIEW_API_ENDPOINT=http://{{ansible_hostname}}.local:4001/,PHOTOVIEW_UI_ENDPOINT=http://{{ansible_hostname}}.local:1234/,MAPBOX_TOKEN={{mapbox_api_key}},PHOTOVIEW_DEVELOPMENT_MODE=0
|
|
|
command=/usr/local/bin/bash -lc "/usr/local/src/photoview/api/api"
|
|
|
+directory=/usr/local/src/photoview/api
|
|
|
autostart=true
|
|
|
autorestart=true
|
|
|
stdout_logfile=/var/log/photoview-api.log
|