Packages

Help you bottle, ship and serve your Elixir apps. Bottler is a collection of tools that aims to help you generate releases, ship them to your servers, install them there, and get them live on production.

Current section

Files

Jump to
bottler lib helper_scripts ssh_server_script.sh.eex
Raw

lib/helper_scripts/ssh_server_script.sh.eex

#!/usr/bin/env bash
# This uses ssh to connect to the remote server.
# Putting your pub key into remote's `authorized_keys` will make it even funnier.
user="<%= user %>"
host="<%= host %>"
port="<%= port %>"
cmd="ssh -p $port $user@$host"
$cmd