-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
28 lines (19 loc) · 810 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
echo "Going to /home"
cd /home/spektrum
echo "Remove spektrumusic directory"
rm -rf spektrumusic
echo "Exporting from SVN"
svn export file:///home/spektrum/svn/railsdev/trunk/spektrumusic
echo "Go into spektrumusic"
cd spektrumusic
echo "bundle install"
bundle install --path vendor/bundle
echo "Remove existing public/assets"
rm -rf public/assets
echo "Precompiling"
rake assets:precompile
echo "Re-enabling Phusion Passenger"
echo -e "PassengerEnabled On\nPassengerAppRoot $HOME/spektrumusic\n" > ~/spektrumusic/public/.htaccess
echo "Touch Restart"
touch tmp/restart.txt