mirror of
https://github.com/simon987/ws_bucket.git
synced 2025-04-20 02:36:46 +00:00
Fix deploy
This commit is contained in:
parent
b3e4f8dd3c
commit
290c67d3f6
2
jenkins/Jenkinsfile
vendored
2
jenkins/Jenkinsfile
vendored
@ -59,7 +59,7 @@ pipeline {
|
|||||||
sshCommand remote: remote, command: "cd ws_bucket && rm -rf ws_bucket deploy.sh"
|
sshCommand remote: remote, command: "cd ws_bucket && rm -rf ws_bucket deploy.sh"
|
||||||
sshPut remote: remote, from: 'ws_bucket', into: 'ws_bucket/ws_bucket'
|
sshPut remote: remote, from: 'ws_bucket', into: 'ws_bucket/ws_bucket'
|
||||||
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'ws_bucket/'
|
sshPut remote: remote, from: 'jenkins/deploy.sh', into: 'ws_bucket/'
|
||||||
sshCommand remote: remote, command: 'chmod +x ws_bucket/deploy.sh ./ws_bucket/deploy.sh'
|
sshCommand remote: remote, command: 'chmod +x ws_bucket/deploy.sh && ws_bucket/deploy.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,6 @@ export WSBROOT="ws_bucket"
|
|||||||
|
|
||||||
screen -S ws_bucket -X quit
|
screen -S ws_bucket -X quit
|
||||||
echo "starting ws_bucket"
|
echo "starting ws_bucket"
|
||||||
screen -S ws_bucket -d -m bash -c "cd ${WSBROOT} && chmod +x ws_bucket && export WS_BUCKET_SECRET=${WS_BUCKET_SECRET} && ./ws_bucket"
|
screen -S ws_bucket -d -m bash -c "cd ${WSBROOT} && chmod +x ws_bucket && source ~/.bashrc && ./ws_bucket"
|
||||||
sleep 1
|
sleep 1
|
||||||
screen -list
|
screen -list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user