Fix assets compilation without database.yml

dockerfile-tweaks
Marcin Kulik 7 years ago
parent 3922068b3c
commit 1edd77b677

@ -101,6 +101,9 @@ RUN cd a2png && lein cljsbuild once main && lein cljsbuild once page
ADD . /app
ENV DATABASE_URL "postgresql://postgres:mypass@postgres/asciinema"
ENV REDIS_URL "redis://redis:6379"
RUN cd src && make
RUN bundle exec rake assets:precompile
@ -115,9 +118,6 @@ COPY docker/supervisor/asciinema.conf /etc/supervisor/conf.d/asciinema.conf
VOLUME ["/app/config", "/app/log", "/app/uploads"]
ENV DATABASE_URL "postgresql://postgres:mypass@postgres/asciinema"
ENV REDIS_URL "redis://redis:6379"
ENV HOST "localhost:3000"
CMD ["/usr/bin/supervisord"]

Loading…
Cancel
Save