forked from robert/robertjohnson.work
backwards
This commit is contained in:
parent
63f6d9f815
commit
5430595544
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -27,7 +27,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
sh 'scp -r -o StrictHostKeychecking=no -i $KEY_FILE _site/ ubuntu@box.myemail.cloud:/home/ubuntu/robertjohnson.work/'
|
sh 'scp -r -o StrictHostKeychecking=no -i $KEY_FILE _site/ ubuntu@box.myemail.cloud:/home/ubuntu'
|
||||||
sh 'ssh ubuntu@box.myemail.cloud -i $KEY_FILE \'bash -s\' < deploy.sh'
|
sh 'ssh ubuntu@box.myemail.cloud -i $KEY_FILE \'bash -s\' < deploy.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo rm -Rf /home/user-data/www/robertjohnson.work
|
sudo rm -Rf /home/user-data/www/robertjohnson.work
|
||||||
sudo mv -f /home/ubuntu/robertjohnson.work/_site /home/user-data/www/robertjohnson.work
|
sudo mv -f /home/ubuntu/_site /home/user-data/www/robertjohnson.work
|
||||||
sudo chown -R user-data:root /home/user-data/www/robertjohnson.work
|
sudo chown -R user-data:root /home/user-data/www/robertjohnson.work
|
||||||
sudo chmod -R 755 /home/user-data/www/robertjohnson.work
|
sudo chmod -R 755 /home/user-data/www/robertjohnson.work
|
Loading…
Reference in New Issue
Block a user