2016-08-28 07:58:27 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2016-09-19 03:34:27 +00:00
|
|
|
#version check
|
|
|
|
if grep centos /etc/*-release; then
|
|
|
|
echo "os : centos, use yum"
|
|
|
|
elif grep ubuntu /etc/*-release; then
|
|
|
|
echo "os : ubuntu, use apt-get install"
|
|
|
|
fi
|
|
|
|
|
2016-08-28 07:58:27 +00:00
|
|
|
# setup
|
2016-09-11 06:10:38 +00:00
|
|
|
sudo npm install -g bower
|
|
|
|
sudo --askpass bower install --allow-root
|
2016-09-11 06:12:38 +00:00
|
|
|
gem install bundler
|
2016-08-28 07:58:27 +00:00
|
|
|
bundle install
|
|
|
|
bin/rake db:migrate
|