This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Suppose you set up a custom app (listening on port) with Webfaction and you are assigned port 34544. | |
Now, let's say your node app is deployed by pushing to github on your local machine and pulling it down to your webfaction server. | |
The actual location within the directory Webfaction's control panel set up for you is irrelevant, so when you clone your Git repo, it creates a subfolder within the created directory - so your node app isn't at the root. But it'll still work as long as you get the correct port: | |
example node app: | |
var http = require('http'); | |
http.createServer(function (req, res) { |