It doesn’t, you have to run strapi develop.
I agree not to let it run permanently in dev mode, what I did is configure a dev sub domain in nginx, and whenever I need to run in development I just run “strapi develop” and then I can use my subdomain dev URL to get to it.
Do you have documentation on how to deploy in different environments?
What I have been doing is the following:
Make changes in the development project /strapi/dev
Then I go in the production folder: /strapi/prod or /strapi/stage
Update code, run build – --clean, and that’s it.
I’m sharing the same database for development and production so I don’t have to update the database. But if I was to use different databases, how does it get updated?