forever start ts-node
See original GitHub issueI am trying to run my Typescript app,
with command forever start -v -c ts-node /src/index.ts
and it was say running, but when I run forever list
it was nothing my app running, not list
can I know why? do I make something wrong command ?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:5
Top Results From Across the Web
How to run Typescript files on Server in background?
You could use forever in combination with ts-node . Here is a link to the npm package ts-node. I would suggest using the...
Read more >Running Node.js scripts continuously using forever
Forever is an npm module that ensures a Node.js script continuously runs in the background on the server. It's a helpful CLI tool...
Read more >forever - npm
A simple CLI tool for ensuring that a given node script runs continuously (i.e. forever). Latest version: 4.0.3, last published: a year ago....
Read more >How To Run TypeScript Scripts with ts-node - DigitalOcean
json tutorial; Familiarity with TypeScript. This How To Set Up a New TypeScript Project article is a great place to start. Step 1...
Read more >forever vs nodemon vs ts-node vs tsc-watch | npm trends
forever vs nodemon vs ts-node vs tsc-watch · forever · nodemon · ts-node · tsc-watch.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue for me, I managed to make it work by setting a script in my package.json:
"start:staging": "ts-node src/app.ts"
And use it with forever:
forever start -c "npm run start:staging" ./
I got the same issue. I managed to solve it by installing ts-node globally.
or use the ts-node directly from
node_modules
folder