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

Prod: /node_modules/.bin/babel: not found #1

Open
rjhllr opened this issue Dec 29, 2021 · 1 comment
Open

Prod: /node_modules/.bin/babel: not found #1

rjhllr opened this issue Dec 29, 2021 · 1 comment

Comments

@rjhllr
Copy link

rjhllr commented Dec 29, 2021

Just documenting this, it's not a big one to fix, but will be needed for prod in the future. I know that prod is not a ready-to-use thing as of now, but maybe someone comes across this issue. I'm evaluating the performance of Medusa right now which is why I care about production already. The current prod Dockerfile uses an npm installation which excludes devDependencies:
https://github.com/medusajs/docker-medusa/blob/main/backend/Dockerfile.prod#L41
However, when running using the develop.sh script with the "run" parameter (which is the Dockerfile entrypoint), babel is started too:
image
Fix for now: run an npm i instead of npm i --only=production.

@peastuti
Copy link

peastuti commented May 5, 2022

After all this time, do you consider medusa a valid option for production systems?

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