Skip to content

Commit

Permalink
Adjusted alias
Browse files Browse the repository at this point in the history
  • Loading branch information
idabblewith committed Oct 19, 2023
1 parent a82f45f commit a850906
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ extracted_table_data
*.csv
*.txt
*.dump
*.sql
*.env
extract_data.py

Expand Down
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ RUN echo '# Custom .bashrc modifications\n' \
'alias home="cd ~"\n' \
'alias settz="export TZ=$TZ"\n' \
'alias edit="home && vim .bashrc"\n' \
'alias connectdb="PGPASSWORD=$PRODUCTION_PASSWORD psql -h $PRODUCTION_HOST -d $PRODUCTION_DB_NAME -U $PRODUCTION_USERNAME"\n' \
'alias dump_prod="PGPASSWORD=$PRODUCTION_PASSWORD pg_dump -h $PRODUCTION_HOST -d $PRODUCTION_DB_NAME -U $PRODUCTION_USERNAME -f prod_dump.sql"\n ' \
'alias res_prod="PGPASSWORD=$PRODUCTION_PASSWORD psql -h $PRODUCTION_HOST -d $PRODUCTION_DB_NAME -U $PRODUCTION_USERNAME -a -f prod_dump.sql"\n ' \
'alias dump_uat="PGPASSWORD=$UAT_PASSWORD pg_dump -h $PRODUCTION_HOST -d $UAT_DB_NAME -U $UAT_USERNAME -f uat_dump.sql"\n ' \
'alias res_uat="PGPASSWORD=$UAT_PASSWORD psql -h $PRODUCTION_HOST -d $UAT_DB_NAME -U $UAT_USERNAME -a -f uat_dump.sql"\n ' \
'alias migrate="python manage.py makemigrations && python manage.py migrate"\n ' \
'alias connectprod="PGPASSWORD=$PRODUCTION_PASSWORD psql -h $PRODUCTION_HOST -d $PRODUCTION_DB_NAME -U $PRODUCTION_USERNAME"\n' \
'alias connectuat="PGPASSWORD=$UAT_PASSWORD psql -h $PRODUCTION_HOST -d $UAT_DB_NAME -U $UAT_USERNAME"\n' \
'settz\n'>> ~/.bashrc

CMD ["gunicorn", "config.wsgi", "--bind", "0.0.0.0:8000"]
Expand Down

0 comments on commit a850906

Please sign in to comment.