Skip to content

Instantly share code, notes, and snippets.

@HundredVisionsGuy
Created June 6, 2018 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HundredVisionsGuy/0e59baf01d21851e8508e4e1b01c49c0 to your computer and use it in GitHub Desktop.
Save HundredVisionsGuy/0e59baf01d21851e8508e4e1b01c49c0 to your computer and use it in GitHub Desktop.
set :stage, :production
# Simple Role Syntax
# ==================
#role :app, %w{git@bitbucket.org}
#role :web, %w{git@bitbucket.org}
#role :db, %w{git@bitbucket.org}
# Extended Server Syntax
# ======================
server 'xxx.xxx.xxx.x', user: 'ocsta', roles: %w{web app db}
SSHKit.config.command_map[:composer] = "/home1/ocsta/bin/composer.phar"
# 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(~/.ssh/id_dsa),
forward_agent: true,
auth_methods: %w(password),
port: 2222
}
fetch(:default_env).merge!(wp_env: :production)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment