Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nk20
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20
Commits
b1e7a007
Commit
b1e7a007
authored
5 years ago
by
Pierre-antoine Comby
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.crans.org:bde/nk20
parents
f6dfadd1
f77d95bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7688
passed with stage
in 2 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-4
8 additions, 4 deletions
README.md
with
8 additions
and
4 deletions
README.md
+
8
−
4
View file @
b1e7a007
...
...
@@ -34,17 +34,17 @@ On supposera pour la suite que vous utiliser debian/ubuntu sur un serveur tout n
On utilise uwsgi et Nginx pour gérer le coté serveu :
$ sudo ln -s /var/www/note_kfet/nginx_note.conf /etc/nginx/sites-enabled/
$ sudo ln -s
f
/var/www/note_kfet/nginx_note.conf /etc/nginx/sites-enabled/
**Modifier la config nginx pour l'adapter à votre server!**
Si l'on a un emperor (plusieurs instance uwsgi):
$ sudo ln -s /var/www/note_kfet/uwsgi_note.ini /etc/uwsgi/sites/
$ sudo ln -s
f
/var/www/note_kfet/uwsgi_note.ini /etc/uwsgi/sites/
Sinon:
$ sudo ln -s /var/www/note_kfet/uwsgi_note.ini /etc/uwsgi/apps-enabled/
$ sudo ln -s
f
/var/www/note_kfet/uwsgi_note.ini /etc/uwsgi/apps-enabled/
5.
Base de données
...
...
@@ -99,11 +99,15 @@ NB: cette config est en adéquation avec `note_kfet/settings/production.py`. pen
# Unset local environment variables
unset DJANGO_APP_STAGE
unset DJANGO_DB_PASSWORD
unset DJANGO_SECRET_KEY
}
...
#at end of the file:
export DJANGO_APP_STAGE="prod"
```
export DJANGO_DB_PASSWORD="a_long_and_secure_password"
export DJANGO_SECRET_KEY="a_long_and_secure_secret_key"
Ensuite on bascule dans l'environement virtuel et on lance les migrations
$ source /env/bin/activate
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment