Skip to content
Snippets Groups Projects
  • Pascal Ernster's avatar
    aad36d72
    Create assets on first run in production mode · aad36d72
    Pascal Ernster authored
    Currently, starting RDMS after rebuilding and reinstalling it from
    scratch in `RAILS_ENV=production` mode fails because assets are not
    created automatically. I'd prefer to put the required commands into the
    `Dockerfile`, but this doesn't work currently because the path used to
    store these assets is a Docker volume shared between multiple Docker
    containers, which are not available at build time of these container
    images/execution time of the corresponding `Dockerfile`. Therefore, for
    the time being, we execute the commands in the container's
    `hyrax/docker-entrypoint.sh`.
    aad36d72
    History
    Create assets on first run in production mode
    Pascal Ernster authored
    Currently, starting RDMS after rebuilding and reinstalling it from
    scratch in `RAILS_ENV=production` mode fails because assets are not
    created automatically. I'd prefer to put the required commands into the
    `Dockerfile`, but this doesn't work currently because the path used to
    store these assets is a Docker volume shared between multiple Docker
    containers, which are not available at build time of these container
    images/execution time of the corresponding `Dockerfile`. Therefore, for
    the time being, we execute the commands in the container's
    `hyrax/docker-entrypoint.sh`.