Run migration before starting Docker server; update README a bit

This commit is contained in:
Jyri-Petteri Paloposki 2020-07-17 16:00:22 +03:00
parent 5c94a7c515
commit 8118b588d8
3 changed files with 9 additions and 16 deletions

View file

@ -17,10 +17,9 @@ COPY . /app/
COPY config/database.docker.yml /app/config/database.yml
COPY config/site.docker.yml /app/config/site.yml
#COPY docker-entrypoint.sh /
#ENTRYPOINT ["/docker-entrypoint.sh"]
COPY docker-startserver.sh /
EXPOSE 3000
#CMD ["rails", "server", "-e", "production", "-b", "0.0.0.0"]
CMD ["rails", "server", "-b", "0.0.0.0"]
CMD ["./docker-startserver.sh"]