Skip to content

CLI deploy

Naomichi Yamakita edited this page Mar 18, 2020 · 19 revisions

Command base deploy

Run task

# help
$ docker-compose run --rm rails thor genova:deploy help run-task

# command
$ docker-compose run --rm rails thor genova:deploy run-task -r {repository} -c {cluster} --run-task {run task}

# e.g.
$ docker-compose run --rm rails thor genova:deploy run-task -r api -c production-app --run-task greeting
$ docker-compose run --rm rails thor genova:deploy run-task -r api -c production-app --run-task greeting --override-container rails --override-command db:migrate

Please add run_tasks setting to deploy.yml.

Service deploy

# help
$ docker-compose run --rm rails thor genova:deploy help service

# command
$ docker-compose run --rm rails thor genova:deploy service -r {repository} -c {cluster} -s {service}

# e.g.
$ docker-compose run --rm rails thor genova:deploy service -r api -c production-app -s backend

Scheduled task deploy

# help
$ docker-compose run --rm rails thor genova:deploy help scheduled-task

# command
$ docker-compose run --rm rails thor genova:deploy scheduled-task -r {repository} -c {cluster} --scheduled_task_rule={scheduled_task_rule} --scheduled_task_target={scheduled_task_target}

$ e.g.
$ docker-compose run --rm rails thor genova:deploy scheduled-task -r api -c production-app --scheduled_task_rule=sitemap_refresh --scheduled_task_target=production
Clone this wiki locally