Add support for ActiveStorage (PR #852)
This commit is contained in:
parent
7574f4eb07
commit
19efd68c5f
10 changed files with 122 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ RUN export DATABASE_URL=mysql2://localhost/temp?encoding=utf8 && \
|
|||
mariadb -e "CREATE DATABASE temp" && \
|
||||
cp config/app_config.yml.SAMPLE config/app_config.yml && \
|
||||
cp config/database.yml.MySQL_SAMPLE config/database.yml && \
|
||||
cp config/storage.yml.SAMPLE config/storage.yml && \
|
||||
bundle exec rake db:setup assets:precompile && \
|
||||
rm -Rf tmp/* && \
|
||||
/etc/init.d/mysql stop && \
|
||||
|
|
@ -56,6 +57,8 @@ USER nobody
|
|||
|
||||
EXPOSE 3000
|
||||
|
||||
VOLUME /usr/src/app/storage
|
||||
|
||||
# cleanup, and by default start web process from Procfile
|
||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||
CMD ["./proc-start", "web"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue