mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 20:41:01 +00:00
24eabf89e6
Changed login field text Changed database configuration connection pool size to be configured via dotenv Use a single BBcode parser library Added better translations coverage Code formatting Increases maximum article text limit Added database cleaner with the deletion strategy during testing
51 lines
No EOL
1.2 KiB
Ruby
51 lines
No EOL
1.2 KiB
Ruby
lock '3.1.0'
|
|
|
|
set :application, 'ensl'
|
|
set :deploy_user, 'deploy'
|
|
set :deploy_to, '/var/www/virtual/ensl.org/deploy'
|
|
set :deploy_via, :remote_cache
|
|
set :pty, true
|
|
|
|
set :scm, :git
|
|
set :repo_url, 'git@github.com:ENSL/ensl.org.git'
|
|
set :keep_releases, 10
|
|
|
|
set :rbenv_type, :user
|
|
set :rbenv_ruby, '2.1.1'
|
|
set :dotenv_role, [:app, :web]
|
|
|
|
set :unicorn_config_path, "config/unicorn.rb"
|
|
|
|
set :writable_dirs, %w{public tmp}
|
|
set :linked_files, %w{.env}
|
|
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle
|
|
public/system public/local public/uploads public/files}
|
|
|
|
set :normalize_asset_timestamps, %{public/images
|
|
public/javascripts
|
|
public/stylesheets}
|
|
|
|
namespace :deploy do
|
|
namespace :check do
|
|
desc "Check write permissions"
|
|
task :permissions do
|
|
on roles(:all) do |host|
|
|
fetch(:writable_dirs).each do |dir|
|
|
path = "#{shared_path}/#{dir}"
|
|
|
|
if test("[ -w #{path} ]")
|
|
info "#{path} is writable on #{host}"
|
|
else
|
|
error "#{path} is not writable on #{host}"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
task :restart do
|
|
invoke 'unicorn:restart'
|
|
end
|
|
|
|
after :publishing, :restart
|
|
end |