Selaa lähdekoodia

updated README and compose to fix build issues

Roberto Berto 4 vuotta sitten
vanhempi
commit
605078fd21
2 muutettua tiedostoa jossa 10 lisäystä ja 3 poistoa
  1. 10 1
      README.md
  2. 0 2
      docker-compose.yml

+ 10 - 1
README.md

@@ -70,6 +70,7 @@ now you can access http://127.0.0.1:8000
 Right now we are using db.sqlite3, you can edit composer and to change to mySQL/PostgreSQL if needed.
 
 ```
+find vycontrol | grep migrations | xargs rm -rf
 docker-compose build
 docker-compose up
 ```
@@ -83,11 +84,19 @@ source env/bin/activate
 pip3 install -r requirements.txt
 ```
 
+### create your own configuration
+```
+cp -a vycontrol/vycontrol/settings_example/ /vycontrol/vycontrol/settings_available/
+```
+edit according your needs
+
 ### setup initial database
 ```
 source env/bin/activate
 cd vycontrol
-python3 manage.py migrate --settings=vycontrol.settings_available.production
+python3 manage.py makemigrations config --settings=vycontrol.settings_available.production 
+python3 manage.py makemigrations --settings=vycontrol.settings_available.production 
+python3 manage.py migrate --settings=vycontrol.settings_available.production 
 ```
 
 ### run webserver

+ 0 - 2
docker-compose.yml

@@ -2,8 +2,6 @@ version: "2.2"
 services:
   django:
     container_name: vycontrol
-    volumes:
-      - /etc/vycontrol/settings_available:/code/vycontrol/settings_available
     build:
       context: .
       dockerfile: Dockerfile