File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828
2929# Default value for default_env is {}
3030# set :default_env, { path: "/opt/ruby/bin:$PATH" }
31+ set :default_env , { 'COMPOSE_PROJECT_NAME' : "tagbase" }
3132
3233# Default value for local_user is ENV['USER']
3334# set :local_user, -> { `git config user.name`.chomp }
6263 task :restart_app do
6364 on roles ( :app ) do
6465 # Your restart mechanism here, for example:
65- execute '(cd /home/ubuntu/tagbase-server/current; sudo docker-compose down)'
66- execute '(cd /home/ubuntu/tagbase-server/current; sudo docker-compose up -d)'
67- #execute (cd /home/ubuntu/tagbase-server; docker-compose down; docker-compose up -d)
66+ execute "(cd /home/ubuntu/tagbase-server/current; sudo docker-compose -p'tagbase' down)"
67+ execute "(cd /home/ubuntu/tagbase-server/current; sudo docker-compose -p'tagbase' up -d)"
6868 end
6969 end
7070 after :deploy , 'deploy:copy_env_app'
You can’t perform that action at this time.
0 commit comments