- Add your Gemfile
group :development do
gem 'ishizue', github: 'tk-hamaguchi/ishizue'
end
- Added .ruby-versions. (ex: ruby
2.2
with gemsetsample
)
$ rvm use 2.2@sample --install --create --ruby-version
- Install and generate templates
$ gem install bundler --no-ri --no-rdoc
$ bundle install
$ bundle exec rails g ishizue:install
- Added SSH Keys
$ cp ~/.ssh/id_rsa.pub misc/ssh_keys
- Vagrant up
$ cd misc/itamae/
$ vagrant up
- Setup with Itamae
$ bundle exec itamae ssh -h 192.168.33.10 -u root --ohai roles/staging.rb --node-yaml=nodes/staging.yml
INFO : Starting Itamae...
[email protected]'s password:
password => vagrant
- Access with Web browser
Site | URL |
---|---|
Main | http://192.168.33.10 |
Monitoring | http://192.168.33.10:8282 |
- Edit Capistrano deploy config
vi misc/capistrano/config/deploy/staging.rb
server 'YOUR_SERVER_IP', user: 'deploy', roles: %w{app db web}
- Execute new ip with itamae
cd misc/itamae/
itamae ssh -h YOUR_SERVER_IP -u root --ohai roles/staging.rb --node-yaml=nodes/staging.yml