You've just finished a node.js site. It's a folder with some files and a my_main_file.js
which handles the requests. The thing works on your machine by running node my_main_file.js
. How do you deliver this solution to a client, though? Are you supposed to say 'take this folder, install node.js, run that command line and your site will be online'?
Asked
Active
Viewed 790 times
1

Bhargav Rao
- 50,140
- 28
- 121
- 140

MaiaVictor
- 51,090
- 44
- 144
- 286
-
What OS will the site be running on? Make an installer package for that OS that will do the steps necessary to install it as a service. – gcochard Dec 07 '12 at 00:18
-
@Greg how? Also, as a service? Maybe an executable instead? Not sure which server - the code is multiplatform. – MaiaVictor Dec 07 '12 at 00:19
-
You want to hear about [node.js deployment](http://stackoverflow.com/questions/4681067/how-to-deploy-node-js). – moonwave99 Dec 07 '12 at 02:12
1 Answers
2
The answer is yes. This is quite a bit less complicated than delivering a servable site on other platforms. There are nodejs installation binaries for just about every platform and then it's as simple as:
$ node site/my_main_file
Or maybe there's one more step to install dependencies. Either way, it's about as simple as it gets.

glortho
- 13,120
- 8
- 49
- 45