Skip to content
Snippets Groups Projects
Verified Commit 252bfeaa authored by David Beniamine's avatar David Beniamine
Browse files

Save migration directory

parent 9c89a9e9
Branches
No related tags found
No related merge requests found
......@@ -6,4 +6,6 @@ WORKDIR /app
RUN bundle install
ENV ENV developpement
ENV IP 0.0.0.0
VOLUME /app/db
RUN cp -r /app/db/migrate /migrations
ENTRYPOINT /app/entrypoint.sh
#!/bin/bash
./bin/rails db:migrate
mkdir -p /migrations/* /app/db/migrate/
cp -r /migrations/* /app/db/migrate/
RAILS_ENV=$ENV ./bin/rails db:migrate
./bin/rails server -e $ENV -b $IP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment