- Starlette.io
- Gino
- Uvicorn
Download gino, uvicorn, and postgresql
Pull from harbor-backend repo
Do following commands to change postgres user password:
sudo -i -u postgres
- enter password
Now you should be in the postgres command prompt. Follow below:
createdb {DB_NAME}
psql
You should now be at the postgres=# prompt. Follow below:
ALTER USER postgres with password {some password}
\q
(If you think that didn't work, then consider doing next:) Within the postgres=# prompt:
\password
- Enter password and confirm again
\q
Now we must edit the harbor.env file. You must only edit the password (and the DB_NAME field if you changed the table name).
Now in the regular terminal:
python harbor.py
:)
sudo chmod 400 harbor-frontend-pem.txt
ssh -i harbor-frontend.pem.txt ubuntu@{IP_ADDRESS}
tmux
ortmux attach-session -t {id_of_session}
git pull origin master
just in case you want to get updated codepython3 database.py
NOTE: run this script only if you want to seed datapython3 harbor.py
- Let server run and follow next command
Ctrl+b
released
- DO NOT USE UNLESS NECESSARY:
Ctrl+C
for killing the server on tmux session - Super good resource: https://linuxize.com/post/getting-started-with-tmux/