examples/circleci.yml in cpl-1.4.0 vs examples/circleci.yml in cpl-2.2.0
- old
+ new
@@ -25,11 +25,11 @@
- run:
name: Containerize and push image
command: cpl build-image -a ${APP_NAME}
- run:
name: Database tasks
- command: cpl run:detached -a ${APP_NAME} --image latest -- rails db:migrate
+ command: cpl run -a ${APP_NAME} --image latest -- rails db:migrate
- run:
name: Deploy image
command: cpl deploy-image -a ${APP_NAME}
# Example config for review app:
@@ -73,12 +73,12 @@
cpl build-image -a ${APP_NAME} --commit ${CIRCLE_SHA1::7}
- run:
name: Database tasks
command: |
if [ -n "${NEW_APP}" ]; then
- cpl run:detached -a ${APP_NAME} --image latest -- LOG_LEVEL=warn rails db:reset
+ cpl run -a ${APP_NAME} --image latest -- rails db:reset
else
- cpl run:detached -a ${APP_NAME} --image latest -- LOG_LEVEL=warn rails db:migrate
+ cpl run -a ${APP_NAME} --image latest -- rails db:migrate
fi
- run:
name: Deploy image
command: cpl deploy-image -a ${APP_NAME}