소스 검색

updated README and compose to fix build issues

Roberto Berto 4 년 전
부모
커밋
605078fd21
2개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  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.
 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 build
 docker-compose up
 docker-compose up
 ```
 ```
@@ -83,11 +84,19 @@ source env/bin/activate
 pip3 install -r requirements.txt
 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
 ### setup initial database
 ```
 ```
 source env/bin/activate
 source env/bin/activate
 cd vycontrol
 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
 ### run webserver

+ 0 - 2
docker-compose.yml

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