-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona passos para deploy manual (#72)
* Remove arquivo não utilizado * Corrige leitura da env var ALLOWED_HOSTS * Adiciona script e dependências para deploy manual * Corrige valor default de ALLOWED_HOSTS * Add comando para rodar o servidor em um só
- Loading branch information
1 parent
28bcd56
commit 351d5c3
Showing
5 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
echo "===== Starting the deploy =====" | ||
|
||
cd /home/admin/app | ||
|
||
echo "Installing dependencies..." | ||
pip install -r requirements.txt | ||
|
||
echo "Running migrations..." | ||
python manage.py migrate | ||
|
||
python manage.py runserver 5000 & | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
asgiref==3.6.0 ; python_full_version == "3.7.3" | ||
certifi==2023.5.7 ; python_full_version == "3.7.3" | ||
dj-database-url==0.5.0 ; python_full_version == "3.7.3" | ||
django-public-admin==0.0.5 ; python_full_version == "3.7.3" | ||
django==3.2.19 ; python_full_version == "3.7.3" | ||
gunicorn==20.1.0 ; python_full_version == "3.7.3" | ||
psycopg2-binary==2.9.6 ; python_full_version == "3.7.3" | ||
python-dateutil==2.8.2 ; python_full_version == "3.7.3" | ||
python-decouple==3.8 ; python_full_version == "3.7.3" | ||
pytz==2023.3 ; python_full_version == "3.7.3" | ||
sentry-sdk==1.23.1 ; python_full_version == "3.7.3" | ||
setuptools==67.8.0 ; python_full_version == "3.7.3" | ||
six==1.16.0 ; python_full_version == "3.7.3" | ||
sqlparse==0.4.4 ; python_full_version == "3.7.3" | ||
typing-extensions==4.5.0 ; python_full_version == "3.7.3" | ||
urllib3==1.26.15 ; python_full_version == "3.7.3" |