diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-09-12 19:22:10 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-09-12 19:22:10 +0200 |
commit | ccfe8e1dcef245c90219c2a59b114fe4a7194034 (patch) | |
tree | 30c5179ea3724ddbc7bb664fcf52f8577a619e0b /config | |
parent | c9c95431cf5043dac86a0e0fef7aac5a0d5375b9 (diff) | |
download | norsk-urskog-registrations-ccfe8e1dcef245c90219c2a59b114fe4a7194034.tar.gz norsk-urskog-registrations-ccfe8e1dcef245c90219c2a59b114fe4a7194034.tar.bz2 norsk-urskog-registrations-ccfe8e1dcef245c90219c2a59b114fe4a7194034.zip |
Remove thinrc script.
No longer needed as we're using puma.
Diffstat (limited to 'config')
-rw-r--r-- | config/deploy.rb | 13 | ||||
-rw-r--r-- | config/deploy/templates/thinrc.erb | 31 |
2 files changed, 0 insertions, 44 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 1836fe6..292341e 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -39,19 +39,6 @@ namespace :deploy do end end - file 'nu_regform' do |f| - template = IO.read('config/deploy/templates/thinrc.erb') - res = ERB.new(template).result(binding) - IO.write(t.name, res) - end - - #after :updated, :upload_init_script => 'nu_regform' do |t| - # on roles(:app) do - # shared_dir = File.join(fetch(:deploy_to), 'shared') - # upload!(t.prerequisites.first, File.join(shared_dir, t.prerequisites.first)) - # end - #end - after :restart, :clear_cache do on roles(:web), in: :groups, limit: 3, wait: 10 do # Here we can do anything such as: diff --git a/config/deploy/templates/thinrc.erb b/config/deploy/templates/thinrc.erb deleted file mode 100644 index 141170b..0000000 --- a/config/deploy/templates/thinrc.erb +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -# PROVIDE: <%= fetch(:application) %> -# REQUIRE: LOGIN -# BEFORE: nginx - -. /etc/rc.subr - -name=<%= fetch(:application) %> -rcvar=`set_rcvar` - -: ${<%= fetch(:application) %>_enable:="NO"} -: ${<%= fetch(:application) %>_root:="<%= fetch(:deploy_to) %>"} - -load_rc_config $name - -shared_dir="<%= fetch(:shared_dir) %>" -socket="$shared_dir/tmp/sockets/thin.sock" -pidfile="$shared_dir/tmp/pids/thin.pid" - -command="<%= fetch(:current_dir) %>/bin/thin" -command_args="start -S $socket -P $pidfile -d --prefix=/registration" -command_interpreter="ruby22" - -procname="thin" - -<%= fetch(:application) %>_chdir="$<%= fetch(:current_dir) %>" -<%= fetch(:application) %>_user="www" -<%= fetch(:application) %>_env="RACK_ENV=production PATH=$PATH:/usr/local/bin" - -run_rc_command "$1" |