Skip to content

Instantly share code, notes, and snippets.

@TsTrv
Last active May 16, 2019 16:58
Show Gist options
  • Save TsTrv/76ed57d631b9bfd373e6c1d17ce1b519 to your computer and use it in GitHub Desktop.
Save TsTrv/76ed57d631b9bfd373e6c1d17ce1b519 to your computer and use it in GitHub Desktop.
AdonisJS Elastic Beanstalk run migrations on deployment.
container_commands:
01_node_binary:
command: "ln -sf `ls -td /opt/elasticbeanstalk/node-install/node-v10* | head -1`/bin/node /bin/node"
leader_only: true
02_migration:
command: "node ace migration:run"
@TsTrv
Copy link
Author

TsTrv commented May 16, 2019

Read more on the following link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment