@@ -67,11 +67,12 @@ Af you want to use python and php service at same time, this solution can help y
6767 There are 2 shell script
6868 Use "chmod +x xxxx.sh" command, you activate shell script and run. then it make conf file
6969 nginx's a conf file will be in conf.d folder
70+ if your webroot path has sub-level, input type must be following as "\\/www\\/shop\\/shop_kings
7071 ```
7172
7273 ```
7374 Shell script required informations like bellow
74- webroot : ex -> /www/xxxx
75+ webroot : ex -> shop_kings
7576 domain : ex -> xxxx.com
7677 portnumber : ex -> 80
7778 appname : ex -> php-app (user must be use "container name" referenced in docker-compose.yml file)
@@ -97,17 +98,18 @@ Af you want to use python and php service at same time, this solution can help y
9798
9899### Gunicorn service
99100***
100- * **Municorn service installation [nginx for gunicorn]**
101+ * **Gunicorn service installation [nginx for gunicorn]**
101102 ```
102103 In config/web-server/gunicorn
103104 There are 2 shell script
104105 Use "chmod +x xxxx.sh" command, you activate shell script and run.sh then it make conf file
105106 nginx's a conf file will be in conf.d folder
107+ * if your webroot path has sub-level, input type must be following as "\\/www\\/shop\\/shop_kings
106108 ```
107109
108110 ```
109111 Shell script required informations like bellow
110- webroot : ex -> /www/xxxx
112+ webroot : ex -> shop_kings
111113 domain : ex -> xxxx.com
112114 portnumber : ex -> 80
113115 appname : ex -> gunicorn-app (user must be use "container name" referenced in docker-compose.yml file)
@@ -120,15 +122,13 @@ Af you want to use python and php service at same time, this solution can help y
120122 ```
121123 * If user want to use config.py, user have to modify run.sh file in docker/gunicorn/
122124 In docker/gunicorn/
123- There are 1 shell script, run.sh
124125
125- And user have to consider two lines
126+ Dockerfile required run.sh file to start gunicorn service in a container
127+ There are 2 shell script, make_run.sh and run.sh in /docker/gunicorn
126128
127- 1) cd /www/py37/django_test/repo
128- #User have to move work directory to the project root
129-
130- 2) gunicorn --workers 4 --bind 0.0.0.0:8000 conf.wsgi:application --daemon --reload
131- #User have to consider service port number and worker (cpu core * 2)
129+ if you want to use sample project django_test in /www/py37, you can use run.sh.
130+ if you want to use new project, you must make run.sh using make_run.sh
131+ * when you input the path, considered "\\/www\\/shop\\/shop_kings
132132 ```
133133
134134 * **Run docker-compose.yml**
@@ -145,11 +145,12 @@ Af you want to use python and php service at same time, this solution can help y
145145 There are 2 shell script
146146 Use "chmod +x xxxx.sh" command, you activate shell script and run.sh then it make conf file
147147 nginx's a conf file will be in conf.d folder
148+ * if your webroot path has sub-level, input type must be following as "\\/www\\/shop\\/shop_kings
148149 ```
149150
150151 ```
151152 Shell script required informations like bellow
152- webroot : ex -> /www/xxxx
153+ webroot : ex -> shop_kings
153154 domain : ex -> xxxx.com
154155 portnumber : ex -> 80
155156 appname : ex -> uwsgi-app (user must be use "container name" referenced in docker-compose.yml file)
@@ -161,11 +162,19 @@ Af you want to use python and php service at same time, this solution can help y
161162
162163 ```
163164 In config/app-server/uwsgi
164- There are a file named uwsgi.ini
165+ There are a file of uwsgi_conf.sh
166+ you can make uwsgi.ini using this shell script file
167+ ```
165168
166- Referred comment, user can modify project root path, port number etc
167- * There are sample project in www/py37/ folder. user can referenced it
168169 ```
170+ Dockerfile required run.sh file to start gunicorn service in a container
171+ There are 2 shell script, make_run.sh and run.sh in /docker/uwsgi
172+
173+ if you want to use sample project django_test in /www/py37, you can use run.sh.
174+ if you want to use new project, you must make run.sh using make_run.sh
175+ * when you input the path, considered "\\/www\\/shop\\/shop_kings
176+ ```
177+
169178
170179 * **Run docker-compose.yml**
171180 ```
0 commit comments