-
-
Save HundredVisionsGuy/0e59baf01d21851e8508e4e1b01c49c0 to your computer and use it in GitHub Desktop.
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
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