Version comes from config
This commit is contained in:
@@ -31,13 +31,8 @@ class Mrsk::Cli::App < Mrsk::Cli::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
desc "start", "Start existing app on servers (use --version=<git-hash> to designate specific version)"
|
desc "start", "Start existing app on servers (use --version=<git-hash> to designate specific version)"
|
||||||
option :version, desc: "Defaults to the most recent git-hash in local repository"
|
|
||||||
def start
|
def start
|
||||||
if (version = options[:version]).present?
|
on(MRSK.hosts) { execute *MRSK.app.start, raise_on_non_zero_exit: false }
|
||||||
on(MRSK.hosts) { execute *MRSK.app.start(version: version) }
|
|
||||||
else
|
|
||||||
on(MRSK.hosts) { execute *MRSK.app.start, raise_on_non_zero_exit: false }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "stop", "Stop app on servers"
|
desc "stop", "Stop app on servers"
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
|||||||
role.cmd
|
role.cmd
|
||||||
end
|
end
|
||||||
|
|
||||||
def start(version: config.version)
|
def start
|
||||||
docker :start, service_with_version(version)
|
docker :start, service_with_version
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_container_id
|
def current_container_id
|
||||||
|
|||||||
Reference in New Issue
Block a user