inteam-eu-org / chocolo

Bootleg Picolo App
3 stars 1 forks source link

Add simple makefile to run the project on a docker container #3

Closed JeremyHynes closed 3 months ago

Chocorean commented 3 months ago
[...]
Successfully tagged chocolo-app:latest
Running in production mode
docker run -p 3000:3000 "chocolo-app"
bin/rails aborted!
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)

        raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/rails/config/environment.rb:5:in `<main>'
Tasks: TOP => db:prepare => db:load_config => environment
(See full trace by running task with --trace)
make: *** [Makefile:13: run] Error 1

Ceci est normal a priori, le dockerfile est inclus pour un deploiement en prod, qui necessite un secret de configure, cest donc normal que ca marche po out of the box - on y reviendra