Commit 1cf0d0fc2143c8f3da725b162cd36e3ad985a3fa

Authored by haribo
1 parent eecfb779
Exists in master and in 1 other branch dev

Date: 26/05/2016

By: Paul Carensac
Version: 0.5.4
Install script is now a way for update
Issue (closed): https://projects.irap.omp.eu/issues/3703
Major current version (0.5): https://projects.irap.omp.eu/versions/116
README.md
... ... @@ -65,10 +65,9 @@ CURRENT VERSION
65 65  
66 66 Date: 26/05/2016
67 67 By: Paul Carensac
68   -Version: 0.5.3
69   -Minor changes (see issue)
70   -(Attention: DB changed)
71   -Issue (closed): https://projects.irap.omp.eu/issues/3708
  68 +Version: 0.5.4
  69 +Install script is now a way for update
  70 +Issue (closed): https://projects.irap.omp.eu/issues/3703
72 71 Major current version (0.5): https://projects.irap.omp.eu/versions/116
73 72  
74 73 ROADMAP: https://projects.irap.omp.eu/projects/cpipeline/roadmap
... ...
install/REQUIREMENTS.txt
... ... @@ -4,6 +4,7 @@ anyjson==0.3.3
4 4 billiard==3.3.0.23
5 5 celery==3.1.23
6 6 Comet==2.1.0rc0
  7 +DateTime==4.1.1
7 8 Django==1.9.4
8 9 django-admin-tools==0.7.2
9 10 django-bootstrap3==7.0.1
... ...
install/REQUIREMENTS_SQLITE.txt
... ... @@ -4,6 +4,7 @@ anyjson==0.3.3
4 4 billiard==3.3.0.23
5 5 celery==3.1.23
6 6 Comet==2.1.0rc0
  7 +DateTime==4.1.1
7 8 Django==1.9.4
8 9 django-admin-tools==0.7.2
9 10 django-bootstrap3==7.0.1
... ...
install/install_requirements.sh
... ... @@ -41,6 +41,7 @@ CREATE_SUPERUSER_SCRIPT="from django.contrib.auth.models import User; User.objec
41 41 INSTALLATION_FINISHED="-Installation finished"
42 42 BAD_SQL_CONFIGURATION="-Migration cannot be applied to the database : check your database configuration, or use sqlite instead"
43 43 TELL_SUPERUSER_CREATION="-Superuser created for django admin interface. Login: $DB_USER , password: $DB_PASSWORD"
  44 +MAKE_MIGRATIONS="-Make migrations for DB models"
44 45 FINAL_MESSAGE="-Please run './pyrosrun server' then go to localhost:$PORT/admin and log in with these id"
45 46  
46 47 # Getting python location
... ... @@ -144,6 +145,14 @@ fi
144 145 echo $CREATE_SUPERUSER
145 146 echo $CREATE_SUPERUSER_SCRIPT | python ../src/manage.py shell
146 147  
  148 +# Apply the migrations
  149 +
  150 +echo $MAKE_MIGRATIONS
  151 +
  152 +python ../src/manage.py makemigrations
  153 +python ../src/manage.py migrate
  154 +
  155 +
147 156 echo $TELL_SUPERUSER_CREATION
148 157 read -n1 -r -p "Press any key to continue..." key
149 158 echo $FINAL_MESSAGE
... ...