Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (27 sloc) 1.11 KB
sudo mkdir -p /var/www/
git clone /var/www/headlinerlite
cd /var/www/headlinerlite
git checkout dev
git submodule init
git submodule update
mysql -u root -h localhost -e "create database headlinerlite; grant all on headlinerlite.* to 'root'@'localhost'"
mysql -u root -h localhost -e "create database headlinerlite_dev; grant all on headlinerlite_dev.* to 'root'@'localhost'"
gem install bundler
bundle install --path vendor
bundle pack
cd ./config;
for old in *.yml.default; do cp $old `basename $old .yml.default`.yml; done;
cd ..
bundle exec rake db:migrate
bundle exec rake db:seed
bundle exec rake db:test:prepare
#echo "now, downloading the php headliner website"
#git clone /var/www/HeadlinerWebsite
cd /var/www/;
sudo mkdir headliner;
cd headliner;
sudo ln -s ../headlinerlite/public/ exchange;
# [[ -f ~/.ssh/ ]] && cat ~/.ssh/ >> $PATH/headlinerlite/authorized_keys
# git commit authorized_keys -m "$NAME keys"
# git push origin dev
echo "all done for now. pester bill, and he'll put together your nginx config"