Run a one-off migration task after deploying my service

Using a Toolbox (Coherence's web-hosted cloud shell) it's easy to get access to a REPL or OS shell in your service's container in any given environment.

  • Launch a new toolbox in the environment from the context menu.
20282028
  • Start the toolbox
614614
  • Launch the toolbox once the status updates from Start
  • You'll end up in a VSCode editor, launch a new terminal window from the menu at the top left of the screen. You can hide the file browser and make the terminal full-screen with the ^ button on the terminal tab.
  • Use the cocli exec command to run your migration script, e.g. cocli exec SERVICE_NAME COMMAND --FLAG ARG1 ARG2

Did this page help you?