Shell (SSH) deployments

Last Updated: Sep 17, 2013 12:08PM EDT

Setting up the Server

Shell deployments allow you to trigger shell commands on your remote server when you commit or push to dploy.io, or directly from your dploy.io account manually. To use shell deployments you’ll need to specify a server name, server address (URL or IP), port, credentials and the shell commands you want dploy.io to execute during deploy.

In the commands section, you’ll specify all of the shell commands that you would like to run on your remote server, each command on a separate line.

There are some variables that you can use in your commands:

  • %REVISION% variable will be replaced with the revision that is being deployed.
  • %FROM_SCRATCH?% will be replaced with 1 or 0, depending whether deployment is from scratch or not.
  • %BRANCH% is the branch that is being deployed.
  • %COMMENT% is comment associated with the deployment.
  • %USER_NAME% name of the user who triggered the deployment.

Please be careful when using shell commands, shell deployments are powerful but also dangerous. Please double check the commands before finishing setup.

Public key authentication

If you prefer, you can use public key authentication instead of a password to connect to your remote server.

Use public key for authentication

If you decided to use public key authentication, make sure to download dploy.io’s public key (which we provide on the server setup page) and install it on your remote server. All servers that are added to the same repository have the same key. You are ready to go after that.

::...
免责声明:
当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
内容版权归原作者所有;
本人对内容的有效性/合法性不承担任何强制性责任.
若有不妥, 欢迎评注提醒:

或是邮件反馈可也:
askdama[AT]googlegroups.com


订阅 substack 体验古早写作:


点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

关注公众号, 持续获得相关各种嗯哼:
zoomquiet


自怼圈/年度番新

DU22.4
关于 ~ DebugUself with DAMA ;-)
粤ICP备18025058号-1
公安备案号: 44049002000656 ...::