Skip to content

Commit

Permalink
Improve run modes
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltrolezi committed Oct 8, 2024
1 parent 9a1a19b commit ccf7439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ case "$RUN_MODE" in
php artisan migrate
;;
command)
$RUN_MODE_COMMAND
eval $RUN_MODE_COMMAND
;;
*)
echo "Invalid RUN_MODE."
Expand Down
2 changes: 1 addition & 1 deletion gcp/tools/deploy-job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi
RUN_MODE=$1

# Define command case RUN_MODE=command
RUN_MODE_COMMAND="echo hello-world"
RUN_MODE_COMMAND="sleep 5 && php artisan migrate --seed -vvv"

# Copy the template to a new job.yaml file
cp "$SCRIPT_DIR/../cloud-run/job.template.yaml" $JOB_DEFINITION
Expand Down

0 comments on commit ccf7439

Please sign in to comment.