meteorfaction0.5.0 • Public • Published
If you haven't, create a new Node 0.10.48 App using WebFaction Panel and take note of the App's PORT Number
In the command line, run
npm install -g meteorfaction or
sudo npm install -g meteorfaction if you need root access
Then, in your Meteor App root directory, create a wf_deploy.json file with the following structure and fill the gaps:
Some explanations about the parameters above:
local_app_name The name of your app folder in your local machine
wf_app_name The name of the Node application in your WebFaction panel
wf_server The address of your WebFaction server. Example: web123.webfaction.com
wf_username Your WebFaction main username.
mongo_url Example: mongodb://user:email@example.com:11122/something
wf_port The PORT of your WebFaction APP. Example: 16788
wf_root_url The URL of your application's site. Example: http://www.something.com
After you completed the steps above, run
meteorfaction inside your App's Root Folder and wait for the deploy to complete. That's it!
Don't forget to add
wf_deploy.json to your .gitignore file. It stores sensible data about your app.
- Only working for Node versions that support ES6 (I wrote some parts of the code using ES6 and didn't have the chance to review it).