Skip to content

Instantly share code, notes, and snippets.

@kerren
Created August 7, 2019 11:35
Show Gist options
  • Select an option

  • Save kerren/b701f393b5816f382656b594ddd91241 to your computer and use it in GitHub Desktop.

Select an option

Save kerren/b701f393b5816f382656b594ddd91241 to your computer and use it in GitHub Desktop.
An entrypoint script for a migration service
#!/bin/bash
echo "Running database migrations!"
# First we run the migration of the database
npm run migrate
# Now start the service so that the port opens and the wait command can continue
npm run start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment