Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
version 0.4.2 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 20, 2019
1 parent 29d88e4 commit 4160624
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion flaskdeploy/data/multi_ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sudo apt install socat -y

sudo wget -O - https://get.acme.sh | sh

sudo ~/.acme.sh/acme.sh --force --issue -d "*.{{DOMAIN}}" -d "{{DOMAIN}}" --dns {{DNS_OP}} \
sudo -E /bin/bash ~/.acme.sh/acme.sh --force --issue -d "*.{{DOMAIN}}" -d "{{DOMAIN}}" --dns {{DNS_OP}} \
--cert-file /etc/nginx/certs/site.crt \
--key-file /etc/nginx/certs/site.key \
--fullchain-file /etc/nginx/certs/fullchain.crt \
Expand Down
2 changes: 1 addition & 1 deletion flaskdeploy/data/ssl_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sudo apt install socat -y

sudo wget -O - https://get.acme.sh | sh

sudo -E bash ~/.acme.sh/acme.sh --force --issue -d "*.{{DOMAIN}}" -d "{{DOMAIN}}" --dns dns_cf \
sudo -E /bin/bash ~/.acme.sh/acme.sh --force --issue -d "*.{{DOMAIN}}" -d "{{DOMAIN}}" --dns dns_cf \
--cert-file /etc/nginx/certs/site.crt \
--key-file /etc/nginx/certs/site.key \
--fullchain-file /etc/nginx/certs/fullchain.crt \
Expand Down
4 changes: 2 additions & 2 deletions flaskdeploy/data/uwsgi_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ chmod-socket = 666
work = 4
reload-mercy = 10
gevent = 100
max-requests = 1000
limit-as = 6048
max-requests = 2048
limit-as = 10240
not_found_val = 404

socket = {{loc}}/uwsgi.sock
Expand Down
4 changes: 2 additions & 2 deletions flaskdeploy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def script_files_gen(domain, usr, loc):
c = None
if os.path.exists(files+'.sh'):
c = "sudo mkdir -p /etc/nginx/certs"
c1 = "sudo "+files+'.sh'
c1 = "sudo /bin/bash"+files+'.sh'

cmd.append(c)
cmd.append(c1)
Expand Down Expand Up @@ -145,4 +145,4 @@ def script_files_gen(domain, usr, loc):
click.echo("-5- One click script file : {} create successfully".format(domain+"/"+'start.sh'))

def script_files_run(domain, usr, loc):
subprocess.call(['sudo', loc+'/start.sh'])
subprocess.call(['sudo', '/bin/bash',loc+'/start.sh'])
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name='flask-deploy',
version='0.4.1',
version='0.4.2',
description='A quick deploy script for productive flask app',
url='https://github.com/Mon-ius/flask-deploy',
author='Mon-ius',
Expand Down

0 comments on commit 4160624

Please sign in to comment.