forked from Hakon/reefpoints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis_deploy.sh
executable file
·21 lines (15 loc) · 1.05 KB
/
travis_deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -e
# Push build/posts.json to homeport.dockyard.com
bundle exec rake build > /dev/null
chmod 600 ./reefpoints_deploy
scp -i ./reefpoints_deploy build/posts.json temp_deploy@homeport.dockyard.com:reefpoints/posts.json
scp -i ./reefpoints_deploy build/new_sitemap.xml temp_deploy@homeport.dockyard.com:reefpoints/sitemap.xml
scp -i ./reefpoints_deploy build/new_atom.xml temp_deploy@homeport.dockyard.com:reefpoints/atom.xml
scp -i ./reefpoints_deploy build/new_atom.xml temp_deploy@homeport.dockyard.com:reefpoints/mailchimp.xml
scp -i ./reefpoints_deploy build/posts.json production@production.dockyard.com:uploads/posts.json
scp -i ./reefpoints_deploy build/new_sitemap.xml production@production.dockyard.com:uploads/sitemap.xml
scp -i ./reefpoints_deploy build/new_atom.xml production@production.dockyard.com:uploads/atom.xml
scp -i ./reefpoints_deploy build/new_atom.xml production@production.dockyard.com:uploads/mailchimp.xml
ssh -i ./reefpoints_deploy production@production.dockyard.com ./load_posts.sh && echo -e "Uploaded!"
echo -e "Done\n"