Created
August 7, 2019 11:35
-
-
Save kerren/b701f393b5816f382656b594ddd91241 to your computer and use it in GitHub Desktop.
An entrypoint script for a migration service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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