Secret Santa management website
10K+
This is a secret santa management website. It will handle:
$ docker build -t santa .
$ docker run -i -e RAILS_ENV=development -p 3000:3000 --name santa -t santa
This will run the container in the foreground. If you would like to run this as a background job, remove the -i argument and hit CTRL+C to break out of the container output.
Production requires a SECRET_KEY_BASE to be provided as an environment variable. This can be generated with rails secret.
$ docker run -i -e RAILS_ENV=production -e SECRET_KEY_BASE=whatever -e RAILS_SERVE_STATIC_FILES=true -p 3000:3000 --name santa -t santa
In production, there are no users or admins by default, so you will need to create the first admin user:
$ docker exec -it santa /bin/bash -c 'rails c'
> AdminUser.create!(email: '[email protected]', password: 'password', password_confirmation: 'password')
Content type
Image
Digest
Size
404.4 MB
Last updated
about 8 years ago
docker pull mattparlette/santa