4

I have an elastic beanstalk instance with flask installed. I have alembic properly setup and I can run the command locally by running

cd migrations
alembic upgrade head

I made a file in my .ebextensions which looks like this:

container_commands:
  00-run-alembic:
    command: alembic upgrade head

But it's not working, I know i probably need to cd in to the proper dir, but im not sure where to do that.

jaronoff97
  • 366
  • 3
  • 15

1 Answers1

2

You need to specify working directory for that command, e.g.:

container_commands:
  00-run-alembic:
    command: alembic upgrade head
    cwd: /put/your/directory/here
nick
  • 673
  • 4
  • 11