mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 17:12:28 +01:00 
			
		
		
		
	Don't rebuild systematically migrations
This commit is contained in:
		@@ -195,7 +195,6 @@ Sinon vous pouvez suivre les étapes décrites ci-dessous.
 | 
			
		||||
        DJANGO_SECRET_KEY=CHANGE_ME
 | 
			
		||||
        DJANGO_SETTINGS_MODULE="note_kfet.settings
 | 
			
		||||
        NOTE_URL=localhost # URL où accéder à la note
 | 
			
		||||
        DOMAIN=localhost # note.example.com
 | 
			
		||||
        CONTACT_EMAIL=tresorerie.bde@localhost
 | 
			
		||||
        # Le reste n'est utile qu'en production, pour configurer l'envoi des mails
 | 
			
		||||
        NOTE_MAIL=notekfet@localhost
 | 
			
		||||
@@ -211,7 +210,6 @@ Sinon vous pouvez suivre les étapes décrites ci-dessous.
 | 
			
		||||
 | 
			
		||||
        $ source /env/bin/activate
 | 
			
		||||
        (env)$ ./manage.py check # pas de bêtise qui traine
 | 
			
		||||
        (env)$ ./manage.py makemigrations
 | 
			
		||||
        (env)$ ./manage.py migrate
 | 
			
		||||
 | 
			
		||||
7.  *Enjoy \o/*
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,4 @@
 | 
			
		||||
---
 | 
			
		||||
- name: Make Django migrations
 | 
			
		||||
  command: /var/www/note_kfet/env/bin/python manage.py makemigrations
 | 
			
		||||
  args:
 | 
			
		||||
    chdir: /var/www/note_kfet
 | 
			
		||||
  become_user: www-data
 | 
			
		||||
 | 
			
		||||
- name: Migrate Django database
 | 
			
		||||
  command: /var/www/note_kfet/env/bin/python manage.py migrate
 | 
			
		||||
  args:
 | 
			
		||||
 
 | 
			
		||||
 Submodule apps/scripts updated: 7246f4d18a...7479671b3f
									
								
							@@ -14,7 +14,6 @@ fi
 | 
			
		||||
# Set up Django project
 | 
			
		||||
python3 manage.py collectstatic --noinput
 | 
			
		||||
python3 manage.py compilemessages
 | 
			
		||||
python3 manage.py makemigrations
 | 
			
		||||
python3 manage.py migrate
 | 
			
		||||
 | 
			
		||||
if [ "$1" ]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user