Skip to content

Commit

Permalink
Foreman wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-b committed Nov 10, 2015
1 parent deb399f commit c66b495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Expand Up @@ -75,7 +75,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.provision :chef_solo do |chef|
chef.json = {
cyclescape: {environment: "production"}
cyclescape: {environment: "staging"}
}
chef.data_bags_path = 'data-bags'

Expand Down
3 changes: 1 addition & 2 deletions local-cookbooks/cyclescape/recipes/default.rb
Expand Up @@ -255,9 +255,8 @@
script 'Update foreman configuration' do
interpreter 'bash'
cwd release_path
environment 'RAILS_ENV' => node['cyclescape']['environment']
code <<-EOH
bundle exec foreman export upstart /etc/init -a cyclescape -u cyclescape -e .env.#{node['cyclescape']['environment']}
bundle exec foreman export upstart /etc/init -a cyclescape -u cyclescape -e .#{node['cyclescape']['environment']}
EOH
notifies :restart, 'service[cyclescape]'
end
Expand Down

0 comments on commit c66b495

Please sign in to comment.