Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a060359

Browse files
committed
corrected flask-gunicorn installation
1 parent c3515de commit a060359

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

‎installation_scripts/install_flask_nginx.sh‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ install_nginx() {
3838
}
3939

4040
create_user() {
41-
useradd -s /sbin/nologin $username
41+
useradd $username
4242
chmod go+x /home/$username
4343

4444
mkdir /home/$username/logs
@@ -129,17 +129,18 @@ install_python3() {
129129
}
130130

131131
install_flask_gunicorn() {
132-
su $username <<'EOF'
132+
133+
su - $username <<'EOF'
133134
cd public_html
134135
python3 -m venv flask_demoenv
135136
source flask_demoenv/bin/activate
136-
python3 -m pip install -r requirements.txt
137-
deactivate; logout
138-
137+
git init
138+
git remote add origin https://github.com/rn4ir/flask-gunicorn-demo.git
139+
git pull origin master
140+
/usr/bin/yes | pip install -r requirements.txt
141+
deactivate
142+
logout
139143
EOF
140-
# Download from VCS
141-
echo -e "PENDING: Download project from Git"
142-
exit
143144

144145
}
145146

@@ -180,8 +181,6 @@ create_user
180181
create_vhost
181182
install_python3
182183

183-
chsh -s /bin/bash $username
184-
185184
install_flask_gunicorn
186185
configure_gunicorn
187186
post_install

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /