aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-04-15 18:39:25 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-04-15 18:39:25 +0200
commit956b726118b4d10aa977b8306ad1cef8f0a2187a (patch)
tree20c953c2417b6c6d7bfc80768a8d55da5fa8e36c /config
parent93bacbc593c5285f9635287caf8ef259ccd372e9 (diff)
downloadhmnoweb-956b726118b4d10aa977b8306ad1cef8f0a2187a.tar.gz
hmnoweb-956b726118b4d10aa977b8306ad1cef8f0a2187a.tar.bz2
hmnoweb-956b726118b4d10aa977b8306ad1cef8f0a2187a.zip
Deploy script fixes
- Create binstubs for app binaries - Link in puma config and app binaries on deploy - Assume rbenv is in path when deploying
Diffstat (limited to 'config')
-rw-r--r--config/deploy.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 64135f7..367ae18 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -6,8 +6,10 @@ set :linked_files, %w{
config/initializers/refinery/core.rb
config/initializers/secret_token.rb
config/piwik.yml
+ config/puma.rb
}
set :linked_dirs, %w{
+ bin
log
tmp/cache
tmp/index
@@ -17,7 +19,7 @@ set :linked_dirs, %w{
public/system
}
set :bundle_without, %w{development test deploy}.join(' ')
-
+set :bundle_binstubs, -> { shared_path.join('bin') }
set :deploy_to, '/home/hmno/webapp/main'
set :pg_user, 'hmno_db_admin'
@@ -30,6 +32,6 @@ ask :piwik_url, 'https://piwik.example.com'
set :rbenv_type, :user
set :rbenv_ruby, File.read('.ruby-version').strip()
-set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec"
+set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} rbenv exec"
set :rbenv_map_bins, %w{rake gem bundle ruby rails}
set :rbenv_roles, :all