Skip to content

Commit

Permalink
update: ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
deploy committed Apr 8, 2019
1 parent f4fc6d2 commit 2ee9667
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/main/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def deployConfig(project, host, ones, ones1, ones2):


supervisor_python_conf = '''[program:$environment$_$project$]
environment=HOME=/home/$USER$,PYTHONPATH=$HOST_PATH$$environment$_$project$,ZUIYOU_ENV="$environment$",$env$
environment=HOME=/home/$USER$,PYTHONPATH=$HOST_PATH$$environment$_$project$,PROJECT_ENV="$environment$",PRODUCT_ENV="",$env$
directory=$HOST_PATH$$environment$_$project$/
command=/usr/bin/python $HOST_PATH$$environment$_$project$/main.py --port=%(process_num)02d
process_name=%(process_num)d
Expand All @@ -142,7 +142,7 @@ def deployConfig(project, host, ones, ones1, ones2):
'''

supervisor_nodejs_conf = '''[program:$environment$_$project$]
environment=HOME=/home/$USER$,PYTHONPATH=$HOST_PATH$$environment$_$project$,ZUIYOU_ENV="$ZUIYOU_ENV$",$env$
environment=HOME=/home/$USER$,PYTHONPATH=$HOST_PATH$$environment$_$project$,PROJECT_ENV="$environment$",PRODUCT_ENV="",$env$
directory=$HOST_PATH$$environment$_$project$/
command=/usr/bin/node $HOST_PATH$$environment$_$project$/index.js --port=%(process_num)d
process_name=%(process_num)d
Expand All @@ -161,7 +161,7 @@ def deployConfig(project, host, ones, ones1, ones2):
'''

supervisor_go_conf = '''[program:$environment$_$project$]
environment=HOME=/home/$USER$,$env$
environment=HOME=/home/$USER$,PROJECT_ENV="$environment$",PRODUCT_ENV="",$env$
directory=$HOST_PATH$$environment$_$project$/
command=$HOST_PATH$$environment$_$project$/bin/$project$ -f $HOST_PATH$$environment$_$project$/etc/$project-env$.conf
process_name = %(process_num)d
Expand All @@ -179,7 +179,7 @@ def deployConfig(project, host, ones, ones1, ones2):
'''

supervisor_sh_conf = '''[program:$environment$_$project$]
environment=HOME=/home/$USER$,$env$
environment=HOME=/home/$USER$,PROJECT_ENV="$environment$",PRODUCT_ENV="",$env$
directory=$HOST_PATH$$environment$_$project$/
command=/bin/bash $HOST_PATH$$environment$_$project$/deploy_start.sh
process_name = %(process_num)d
Expand Down

0 comments on commit 2ee9667

Please sign in to comment.