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 permissions on the keypair | |
chmod 600 gemstash.pem | |
# SSH into the Gem Server | |
ssh -i gemstash.pem ubuntu@$GEMSERVER_IP | |
# Make sure your Gem Server is up to date | |
sudo apt-get update && sudo apt-get -y upgrade | |
# Create a gemstash user |
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
source "https://rubygems.org" | |
ruby "2.3.4" | |
group :development do | |
gem 'capistrano' | |
gem 'capistrano-bundler' | |
gem 'capistrano-rvm' | |
end |
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
server "$GEMSTASH_IP", user: "gemstash", roles: %w{app}, ssh_options: { | |
keys: %w('$LOCAL_MACHINE_SSH_PUBLIC_KEY_PATH'), # This could be ~/.ssh/id_rsa.pub | |
forward_agent: false, | |
auth_methods: %w(publickey) | |
} |
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
:bind: 'ssl://0.0.0.0:8080?cert=$SSL_CERT_PATH&key=$SSL_KEY_PATH' | |
:protected_fetch: true |
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
:bind: tcp://0.0.0.0:8080 | |
:protected_fetch: true |
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
# Load DSL and set up stages | |
require "capistrano/setup" | |
# Include default deployment tasks | |
require "capistrano/deploy" | |
require "capistrano/scm/git" | |
install_plugin Capistrano::SCM::Git | |
require "capistrano/rvm" |
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
ssh-add ~/.ssh/id_rsa |
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
cap production deploy |
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
ssh gemstash@$GEMSERVER_IP | |
cd ~/current | |
bundle exec gemstash authorize push yank |
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
:gemstash: $GEMSTASH_KEY |
OlderNewer