X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Fdeploy%2Fproduction.rb;fp=config%2Fdeploy%2Fproduction.rb;h=9632098a9ea0539f0e255bb6e9d1685de03e031e;hb=124e43e1bd45cb4e6af364274eaa44a75fd99472;hp=0000000000000000000000000000000000000000;hpb=c5e92e50c84cb2ab8fe3f9352b872048ddaf1bfd;p=feedcatcher.git diff --git a/config/deploy/production.rb b/config/deploy/production.rb new file mode 100644 index 0000000..9632098 --- /dev/null +++ b/config/deploy/production.rb @@ -0,0 +1,42 @@ +set :stage, :production + +# Simple Role Syntax +# ================== +# Supports bulk-adding hosts to roles, the primary +# server in each group is considered to be the first +# unless any hosts have the primary property set. +role :app, %w{deploy@example.com} +role :web, %w{deploy@example.com} +role :db, %w{deploy@example.com} + +# Extended Server Syntax +# ====================== +# This can be used to drop a more detailed server +# definition into the server list. The second argument +# something that quacks like a hash can be used to set +# extended properties on the server. +server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value + +# you can set custom ssh options +# it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options +# you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start) +# set it globally +# set :ssh_options, { +# keys: %w(/home/rlisowski/.ssh/id_rsa), +# forward_agent: false, +# auth_methods: %w(password) +# } +# and/or per server +# server 'example.com', +# user: 'user_name', +# roles: %w{web app}, +# ssh_options: { +# user: 'user_name', # overrides user setting above +# keys: %w(/home/user_name/.ssh/id_rsa), +# forward_agent: false, +# auth_methods: %w(publickey password) +# # password: 'please use keys' +# } +# setting per server overrides global ssh_options + +# fetch(:default_env).merge!(rails_env: :production)