mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-21 18:42:29 +01:00
Add some rake tasks for Docker
This commit is contained in:
parent
c655b16cb8
commit
9d364565f6
17
lib/tasks/docker.rake
Normal file
17
lib/tasks/docker.rake
Normal file
@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
namespace :docker do
|
||||
namespace :development do
|
||||
desc 'Build and start services in development'
|
||||
task :start do
|
||||
`docker-compose up -d`
|
||||
end
|
||||
end
|
||||
|
||||
namespace :production do
|
||||
desc 'Build or rebuild and start services in production'
|
||||
task :start do
|
||||
`docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull && docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d`
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user