Last active
December 21, 2015 11:59
-
-
Save jacoyutorius/6303097 to your computer and use it in GitHub Desktop.
Vagrantプロビジョニング用シェルスクリプト
が、26行目の処理あたりで止まる。原因不明・・・
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get update | |
apt-get upgrade | |
apt-get install -y apache2 | |
#rm -rf /var/www | |
#ln -fs /vagrant /var/www | |
apt-get install vim | |
# install libralies for buiding Ruby | |
apt-get -y install gcc | |
apt-get -y install make | |
apt-get -y install gcc-c++ | |
apt-get -y install zlib-devel | |
apt-get -y install httpd-devel | |
apt-get -y install openssl-devel | |
apt-get -y install curl-devel | |
apt-get -y install sqlite-devel | |
# install git | |
apt-get -y install git | |
git clone git://github.com/sstephenson/ruby-build.git | |
cd ruby-build | |
./install.sh | |
# install rbenv | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
source ~/.bashrc | |
exec $SHELL -l | |
rbenv install -l | |
rbenv install 2.0.0-p247;rbenv rehash | |
rbenv global 2.0.0-p247;rbenv rehash | |
# install Rails | |
gem install sqlite3;rbenv rehash | |
gem install rdoc | |
gem install rails | |
rbenv rehash | |
rails -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment