Hacker News new | ask | show | jobs
by gkoberger 3729 days ago
For PHP, you upload index.php, go to yoursite.com/index.php, and it works. Node isn't like that at all. For example, here's the "Hello World" guide for getting Node started:

https://www.digitalocean.com/community/tutorials/how-to-set-...

This is basically the problem `now` is solving... "what if Node was as easy as PHP?"

1 comments

> For PHP, you upload index.php

That's not inherent to PHP. It's just how most hosts are set up. The only major difference is the order in which things are done (and the necessity to have shell access to the host.)

The real comparison is this:

# PHP # 1. Install a server 2. (Possibly optional) Install a process manager 3. (Possibly optional) Configure the process manager 4. Configure the server 5. Start the server 6. Upload files

# Node # 1. Install Node 2. Upload files 3. Start the server

So you have 3 configuration steps for PHP and none for Node? You're completely full of it.
6 for PHP, 3 for node. There's an objective difference: node has a built-in, production-ready server.
Silliness. Here's me building a production php server:

1) `apt-get install php5 apache2`

2) upload index.php

3) There is no step 3