Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prod/dev docker compose file pattern #28

Open
rosshadden opened this issue Feb 21, 2020 · 1 comment
Open

Use prod/dev docker compose file pattern #28

rosshadden opened this issue Feb 21, 2020 · 1 comment

Comments

@rosshadden
Copy link
Contributor

Copy the pattern used by reaction to have both prod and dev docker compose files.

@focusaurus
Copy link

Note, as is the dev image does not seem to automatically install npm dependencies at startup.

> [email protected] start /app
> node --experimental-modules --experimental-json-modules src/index.js

(node:36) ExperimentalWarning: The ESM module loader is experimental.
internal/modules/esm/default_resolve.js:84
  let url = moduleWrapResolve(specifier, parentURL);
            ^

Error: Cannot find package 'envalid' imported from /app/src/config.js
    at Loader.resolve [as _resolve] (internal/modules/esm/default_resolve.js:84:13)
    at Loader.resolve (internal/modules/esm/loader.js:73:33)
    at Loader.getModuleJob (internal/modules/esm/loader.js:147:40)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:41:40)
    at link (internal/modules/esm/module_job.js:40:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
npm ERR! code ELIFECYCLE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants