Add support for ActiveStorage (PR #852)

This commit is contained in:
Patrick Gansterer 2022-01-31 08:44:53 +01:00 committed by GitHub
parent 7574f4eb07
commit 19efd68c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 122 additions and 0 deletions

View file

@ -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"]