commit
f16f300f4b
@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
|
||||
name="$1"
|
||||
sshURL="$2"
|
||||
nodePort=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`
|
||||
@ -16,7 +15,6 @@ echo `pwd`
|
||||
|
||||
DJANGO_SETTINGS_MODULE=project.settings.prod
|
||||
export DJANGO_SETTINGS_MODULE=project.settings.prod
|
||||
export PATH=PATH
|
||||
|
||||
NODE_ENV='staging'
|
||||
export NODE_ENV='staging'
|
||||
|
@ -2,7 +2,7 @@
|
||||
name="$1"
|
||||
sshURL="$2"
|
||||
workingPath = /var/www/gitwrapper/$name
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
|
||||
|
||||
eval "$(ssh-agent -s)"
|
||||
ssh-add /root/.ssh/id_github_rsa
|
||||
cd $workingPath
|
||||
@ -10,7 +10,6 @@ cd $workingPath
|
||||
|
||||
DJANGO_SETTINGS_MODULE=project.settings.prod
|
||||
export DJANGO_SETTINGS_MODULE=project.settings.prod
|
||||
export PATH=PATH
|
||||
source env/bin/activate
|
||||
|
||||
git stash
|
||||
|
Loading…
x
Reference in New Issue
Block a user