Skip to content

Commit

Permalink
#57 test config capistrano
Browse files Browse the repository at this point in the history
  • Loading branch information
clairezed committed Jul 12, 2018
1 parent d0dee0f commit 0402f84
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ def deploysecret(key)
set :rails_env, fetch(:stage)
set :rvm1_ruby_version, '2.3.2'

set :application, 'consul'
set :application, 'cdj_aude'
set :full_app_name, deploysecret(:full_app_name)

set :server_name, deploysecret(:server_name)
set :repo_url, 'https://github.com/consul/consul.git'
set :repo_url, 'https://github.com/CDJ11/CDJ.git'

set :revision, `git rev-parse --short #{fetch(:branch)}`.strip

Expand All @@ -26,7 +26,8 @@ def deploysecret(key)

set :keep_releases, 5

set :local_user, ENV['USER']
# set :local_user, ENV['USER']
set :local_user, 'deploy'

set :delayed_job_workers, 2
set :delayed_job_roles, :background
Expand Down
19 changes: 19 additions & 0 deletions config/unicorn.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# set path to the application
app_dir = "/home/deploy/cdj_aude/current"
shared_dir = "/home/deploy/cdj_aude/shared"
working_directory app_dir

# Set unicorn options
worker_processes 2
preload_app true
timeout 60

# Path for the Unicorn socket
listen "#{shared_dir}/sockets/cdj_aude.sock", :backlog => 64

# Set path for logging
stderr_path "#{shared_dir}/log/unicorn.stderr.log"
stdout_path "#{shared_dir}/log/unicorn.stdout.log"

# Set proccess id path
pid "#{shared_dir}/pids/unicorn.pid"

0 comments on commit 0402f84

Please sign in to comment.