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
vagrant plugin install sahara | |
# sandboxモード実行 | |
$ vagrant sandbox on | |
# ロールバック | |
vagrant sandbox rollback | |
# コミット | |
vagrant sandbox commit |
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
# 適当な場所で作業用ディレクトリを作成 | |
mkdir test_dir | |
cd test_dir | |
vagrant init hakozaru/CentOS-7-x86_64_Minimal_1511 | |
vagrant up | |
# login ! |
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
cd /vagrant/sample_app | |
rails s -b 0.0.0.0 |
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
# 仮想環境からログアウト | |
exit | |
# mac上での操作 | |
vagrant reload | |
# 再度ログイン | |
vagrant ssh |
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
# 25行目のコメントを解除する(行頭の#を外す) | |
# guest: 3000, host: 3000に修正する | |
config.vm.network "forwarded_port", guest: 3000, host: 3000 | |
# 29行目のコメントを解除する(行頭の#を外す) | |
config.vm.network "private_network", ip: "192.168.33.10" |
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
# ローカルとファイルを同期して、いつも使っているエディタで開発するため | |
# (/vagrant以下はVagrantfileがあるディレクトリと同期される) | |
cd /vagrant | |
rails new sample_app |
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
vagrant up | |
vagrant ssh |
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
vagrant init hakozaru/rails_centos7_2 |
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
mkdir test_dir | |
cd test_dir |
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
rbenv local 2.3.0 |
NewerOlder