You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello there,
First of all. Thanks for sharing this tool with us!!!
I get an error when I build the docker. sudo docker run -p 8443:8000 trotto ../scripts/upgrade_db.sh: 1: cd: can't cd to server/src INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. [2022-10-10 15:20:14 +0000] [16] [INFO] Starting gunicorn 20.0.4 [2022-10-10 15:20:14 +0000] [16] [INFO] Listening at: http://0.0.0.0:8000 (16) [2022-10-10 15:20:14 +0000] [16] [INFO] Using worker: sync [2022-10-10 15:20:14 +0000] [19] [INFO] Booting worker with pid: 19 [2022-10-10 15:20:14 +0000] [20] [INFO] Booting worker with pid: 20 [2022-10-10 15:20:14 +0000] [21] [INFO] Booting worker with pid: 21 [2022-10-10 15:20:14 +0000] [22] [INFO] Booting worker with pid: 22
The original, non-docker file (upgrade_db.sh) located in the cloned repo: server/scripts/ points to a relative path:
server/scripts/upgrade_db.sh:
cd server/src
export FLASK_APP=main.py
flask db upgrade
The command cd server/src could be replaced by the full docker folder path: cd /usr/src/app/server/src/
I resolved it by replacing the cd relative path in server/scripts/upgrade_db.sh by a cd to the absolute docker folder path (cd /usr/src/app/server/src/) and by rebuilding the docker after.
server/scripts/upgrade_db.sh:
cd /usr/src/app/server/src/
export FLASK_APP=main.py
Thanks for everything!
The text was updated successfully, but these errors were encountered:
mjabroux
added a commit
to mjabroux/go-links
that referenced
this issue
Oct 14, 2022
hello there,
First of all. Thanks for sharing this tool with us!!!
I get an error when I build the docker.
sudo docker run -p 8443:8000 trotto ../scripts/upgrade_db.sh: 1: cd: can't cd to server/src INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. [2022-10-10 15:20:14 +0000] [16] [INFO] Starting gunicorn 20.0.4 [2022-10-10 15:20:14 +0000] [16] [INFO] Listening at: http://0.0.0.0:8000 (16) [2022-10-10 15:20:14 +0000] [16] [INFO] Using worker: sync [2022-10-10 15:20:14 +0000] [19] [INFO] Booting worker with pid: 19 [2022-10-10 15:20:14 +0000] [20] [INFO] Booting worker with pid: 20 [2022-10-10 15:20:14 +0000] [21] [INFO] Booting worker with pid: 21 [2022-10-10 15:20:14 +0000] [22] [INFO] Booting worker with pid: 22
The original, non-docker file (upgrade_db.sh) located in the cloned repo: server/scripts/ points to a relative path:
server/scripts/upgrade_db.sh:
cd server/src
export FLASK_APP=main.py
flask db upgrade
The command
cd server/src
could be replaced by the full docker folder path:cd /usr/src/app/server/src/
I resolved it by replacing the cd relative path in server/scripts/upgrade_db.sh by a cd to the absolute docker folder path (cd /usr/src/app/server/src/) and by rebuilding the docker after.
server/scripts/upgrade_db.sh:
cd /usr/src/app/server/src/
export FLASK_APP=main.py
Thanks for everything!
The text was updated successfully, but these errors were encountered: