Commit e21da10a authored by jz143's avatar jz143

updated deploy settings

parent 0747b742
......@@ -3,12 +3,13 @@ lock '3.4.0'
set :application, 'appstore'
set :repo_url, 'git@gitlab.oit.duke.edu:colab/appstore.git'
set :branch, 'deploy'
# Default branch is :master
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, '/Users/appstore/appstore'
set :deploy_to, '/home/appstore/appstore'
# Default value for :log_level is :debug
# set :log_level, :debug
......@@ -35,12 +36,15 @@ namespace :deploy do
upload! 'config/database.yml', "#{shared_path}/config/database.yml"
upload! 'config/secrets.yml', "#{shared_path}/config/secrets.yml"
upload! 'config/settings.local.yml', "#{shared_path}/config/settings.local.yml"
# provisioning profiles
execute :mkdir, '-p', "#{shared_path}/resources/ios_provisioning_profiles"
upload! 'resources/ios_provisioning_profiles/CoLab_Member_Apps_20151.mobileprovision',
"#{shared_path}/resources/ios_provisioning_profiles/CoLab_Member_Apps_20151.mobileprovision"
end
# TODO: need to update shared_path because it's different from Debian paths
# on roles(:ios_sign) do
# # provisioning profiles
# execute :mkdir, '-p', "#{shared_path}/resources/ios_provisioning_profiles"
# upload! 'resources/ios_provisioning_profiles/CoLab_Member_Apps_20151.mobileprovision',
# "#{shared_path}/resources/ios_provisioning_profiles/CoLab_Member_Apps_20151.mobileprovision"
# end
end
before 'deploy:check:linked_dirs', :upload_config
......
role :app, %w{appstore@istudio-osxserver.oit.duke.edu}
role :web, %w{appstore@istudio-osxserver.oit.duke.edu}
role :db, %w{appstore@istudio-osxserver.oit.duke.edu}
role :ios_sign, %w{appstore@istudio-osxserver.oit.duke.edu}
role :app, %w{appstore@appstore.colab.duke.edu}
role :web, %w{appstore@appstore.colab.duke.edu}
role :db, %w{appstore@appstore.colab.duke.edu}
# role :ios_sign, %w{appstore@istudio-osxserver.oit.duke.edu}
set :rvm_ruby_version, '2.2.1'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment