Skip to content

CLI deploy

Naomichi Yamakita edited this page Dec 23, 2022 · 19 revisions

In order to deploy an application, you need to create a proper deployment configuration file in advance.

Update service

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

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

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

Update scheduled task

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

# Execution
$ 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}

$ Execution example
$ docker-compose run --rm rails thor genova:deploy scheduled-task -r api -c production-app --scheduled_task_rule=sitemap_refresh --scheduled_task_target=production

Execute the Run task

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

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

# Execution example
$ 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
Clone this wiki locally