News for hackers. Stuff that matters.
Re:PHP Popularity: Is it decreasing and what to do about it? by 0xblinq on Sunday April 23, 2023 @11:08AM (#35676880)
> What's the JS equivalent of "place an index.php file in a folder to deploy"?

My favorite way to do this is to add a custom script to package.json like:

"start": "pm2 start index.js --name myapp --watch"

Any file change will reload the application and if it crashes it will be restarted. So just scp/rsync files if that's your desired workflow.

In my experience, it's far easier and faster than setting up nginx, apache, fpm, etc, etc.

There are no comments on this comment yet.