mirror of
https://github.com/internetee/registry.git
synced 2025-05-29 17:10:08 +02:00
Added mina admin deploy
This commit is contained in:
parent
341841cb30
commit
5ed1bc6384
1 changed files with 8 additions and 0 deletions
|
@ -15,9 +15,14 @@ set :deploy_to, '/home/app/registry'
|
||||||
set :repository, 'https://github.com/internetee/registry'
|
set :repository, 'https://github.com/internetee/registry'
|
||||||
set :branch, 'master'
|
set :branch, 'master'
|
||||||
|
|
||||||
|
task :admin do
|
||||||
|
set :deploy_to, '/home/app/admin-registry'
|
||||||
|
end
|
||||||
|
|
||||||
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
||||||
# They will be linked in the 'deploy:link_shared_paths' step.
|
# They will be linked in the 'deploy:link_shared_paths' step.
|
||||||
set :shared_paths, [
|
set :shared_paths, [
|
||||||
|
'config/initializers/env.rb',
|
||||||
'config/database.yml',
|
'config/database.yml',
|
||||||
'config/secrets.yml',
|
'config/secrets.yml',
|
||||||
'log',
|
'log',
|
||||||
|
@ -49,6 +54,9 @@ task setup: :environment do
|
||||||
queue! %(mkdir -p "#{deploy_to}/shared/config")
|
queue! %(mkdir -p "#{deploy_to}/shared/config")
|
||||||
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/config")
|
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/config")
|
||||||
|
|
||||||
|
queue! %(mkdir -p "#{deploy_to}/shared/config/initializers")
|
||||||
|
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/config/initializers")
|
||||||
|
|
||||||
queue! %(mkdir -p "#{deploy_to}/shared/public")
|
queue! %(mkdir -p "#{deploy_to}/shared/public")
|
||||||
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/public")
|
queue! %(chmod g+rx,u+rwx "#{deploy_to}/shared/public")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue