Closed crossinghoods closed 4 years ago
Hi @crossinghoods
NODE_ENV
set to production
.Config
class (using syntax highlighting) as well as your configuration file (yml
, json
or .env
)? Thanks.I'm closing old issues. Feel free to reopen it if you still need help on this.
Not sure if anyone else is facing these 2 issues I'm having.
1) I believe there is a documentation error on this page https://foalts.gitbook.io/docs/topic-guides/deployment-and-environments/ship-to-production
NODE_ENV=production npm run start
shouldn't it be this instead?NODE_ENV=production
2) Trying to do a test deployment on my server but have found that production configuration does not load. I have created the .env file but FoalTS/config doesn't seem to automatically load it?
Instead I have put in a simple fix on my index.ts file to run the following function before running main()