Skip to content
Snippets Groups Projects
Commit 6942b5cc authored by florimondmanca's avatar florimondmanca
Browse files

flatten project directory structure

parent e4337162
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,8 @@ __pycache__/ ...@@ -23,8 +23,8 @@ __pycache__/
# .env # .env
# media and collected static files # media and collected static files
oser_backend/media/ media/
oser_backend/static/ static/
# Supervisor # Supervisor
supervisord.pid supervisord.pid
...@@ -27,8 +27,6 @@ before_script: ...@@ -27,8 +27,6 @@ before_script:
# - the one set up in settings/default.py # - the one set up in settings/default.py
- psql -c 'create database oser_backend_db;' -U postgres - psql -c 'create database oser_backend_db;' -U postgres
# Go to the project root directory
- cd oser_backend
# Apply database migrations # Apply database migrations
- python manage.py migrate - python manage.py migrate
...@@ -50,7 +48,7 @@ deploy: ...@@ -50,7 +48,7 @@ deploy:
staging: oser-backend-staging staging: oser-backend-staging
run: run:
# automatically run new migrations # automatically run new migrations
- 'python oser_backend/manage.py migrate' - 'python manage.py migrate'
api_key: api_key:
# Encrypted API key obtained from the following command # Encrypted API key obtained from the following command
# (requires TravisCI and Heroku CLI installed) # (requires TravisCI and Heroku CLI installed)
......
web: sh -c 'cd oser_backend && exec gunicorn oser_backend.wsgi:application --bind 0.0.0.0:$PORT --workers 1' web: gunicorn oser_backend.wsgi:application --bind 0.0.0.0:$PORT
# Toggle next line to start Celery in a worker process # Toggle next line to start Celery in a worker process
# worker: sh -c 'cd oser_backend && exec celery -A oser_backend worker --beat -l info' # worker: celery -A oser_backend worker --beat -l info
...@@ -80,7 +80,6 @@ $ pip install -r requirements.txt ...@@ -80,7 +80,6 @@ $ pip install -r requirements.txt
- Configurez la base de données en exécutant les migrations (rappelez-vous : *le serveur PostgreSQL doit être actif*) : - Configurez la base de données en exécutant les migrations (rappelez-vous : *le serveur PostgreSQL doit être actif*) :
```bash ```bash
$ cd oser_backend
$ python manage.py migrate $ python manage.py migrate
``` ```
...@@ -190,7 +189,7 @@ $ supervisorctl tail celery ...@@ -190,7 +189,7 @@ $ supervisorctl tail celery
Le backend utilise le plan gratuit de [SendGrid](https://sendgrid.com) (jusqu'à 100 emails par jour) pour envoyer des emails et notifications aux utilisateurs. Le backend utilise le plan gratuit de [SendGrid](https://sendgrid.com) (jusqu'à 100 emails par jour) pour envoyer des emails et notifications aux utilisateurs.
La documentation de cette application est consultable ici : [oser_backend/mails/README.md](oser_backend/mails/README.md). La documentation de cette application est consultable ici : [mails/README.md](mails/README.md).
> En développement, utilisez la configuration `dev_sendgrid` pour [activer le mode bac à sable](https://github.com/sklarsa/django-sendgrid-v5#other-settings). > En développement, utilisez la configuration `dev_sendgrid` pour [activer le mode bac à sable](https://github.com/sklarsa/django-sendgrid-v5#other-settings).
> ``` > ```
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment