Prechádzať zdrojové kódy

finish script version and bug fix

Evgeny Polivanov 1 rok pred
rodič
commit
34c0b3a85b
4 zmenil súbory, kde vykonal 10 pridanie a 10 odobranie
  1. 1 1
      .gitignore
  2. 2 2
      bin/webuser.sh
  3. 1 1
      core/settings.py
  4. 6 6
      install_unix.sh

+ 1 - 1
.gitignore

@@ -18,4 +18,4 @@ __pycache__/
 
 # Other
 *.sqlite3
-.env
+.env

+ 2 - 2
bin/webuser.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
-cd /path/to/project
-exec /path/to/project/env/bin/gunicorn core.wsgi:application -c core/conf_gunicorn.py
+cd /root/sharix-open-webapp-base
+exec /root/sharix-open-webapp-base/webapp-base/bin/gunicorn core.wsgi:application -c core/conf_gunicorn.py

+ 1 - 1
core/settings.py

@@ -14,7 +14,7 @@ SECRET_KEY = conf.SECRET_KEY
 DEBUG = conf.DEBUG
 
 ALLOWED_HOSTS = conf.ALLOWED_HOSTS
-CSRF_TRUSTED_ORIGINS = []
+CSRF_TRUSTED_ORIGINS = conf.CSRF_TRUSTED_ORIGINS
 
 # Application definition
 INSTALLED_APPS = [

+ 6 - 6
install_unix.sh

@@ -1,12 +1,12 @@
 #!/bin/bash
-git clone -b unstable http://git.sharix-app.org/ShariX_Open/sharix-open-tickets.git tickets
-git clone -b metasynced_module http://git.sharix-app.org/ShariX_Open/sharix-open-backend.git metaservicesynced
+git clone -b unstable ssh://gogs@git.sharix-app.org/ShariX_Open/sharix-open-tickets.git tickets
+git clone -b metasynced_module ssh://gogs@git.sharix-app.org/ShariX_Open/sharix-open-backend.git metaservicesynced
 python3 -m venv webapp-base
 source webapp-base/bin/activate
 pip3 install --upgrade pip
 pip3 install -r requirements.txt
-#python3 manage.py makemigrations
-#python3 manage.py migrate
-#python3 manage.py collectstatic
-#python3 manage.py createsuperuser
+python3 manage.py makemigrations
+python3 manage.py migrate
+python3 manage.py collectstatic
+python3 manage.py createsuperuser
 deactivate