#Medusa Start isn't running custom routes and entities
23 messages · Page 1 of 1 (latest)
what is the command you use to start your instance on your host?
medusa develop
and you are using the extender right?
yeah yeah it was working fine
therefore, the medusa develop command will not start your instance using your main file
scripts were ```
- "seed": "medusa seed -f ./data/seed.json",
- "build": "tsc",
- "start": "npm run build && nodemon dist/src/main.js"
you should call start instead
now they are ```
- "serve": "medusa start",
- "start": "medusa develop",
- "heroku-postbuild": "medusa migrations run",
- "prepare": "npm run build",
- "build": "babel src -d dist --extensions ".ts,.js""
and create a start:prod for example
i tried both they didnt work
already your start command is for local development,
you should have something like:
"start:prod": "NODE_ENV=production npm run build && node dist/src/main.js or something similar
I should have that in scripts ?
at least something like that yes
since the start is different from a classic medusa server since you have a main file which take care of the bootstrap
ok deal thanks ❤️
my pleasure 🙂
extender
The extender provides an out-of-the-box application architecture which allows developers and teams to create highly testable, scalable, loosely coupled, and easily maintainable applications.
In also increase medusa extensibility and customisation for special use cases. It comes with handy
decorators approach to increase the DX and full typings s...