npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

meteorfaction

0.5.0 • Public • Published

meteorfaction

Command-line tool for deploying Meteor APPs to Webfaction

Basic Configuration

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:

{
    "local_app_name": "",
    "wf_app_name": "",
    "wf_server": "",
    "wf_username": "",
    "mongo_url": "",
    "wf_port": "",
    "wf_root_url": ""
}

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:password@ds123456.mlab.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

Deploying

After you completed the steps above, run meteorfaction inside your App's Root Folder and wait for the deploy to complete. That's it!

Gitignore

Don't forget to add wf_deploy.json to your .gitignore file. It stores sensible data about your app.

Observations

  • 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).

Keywords

none

install

npm i meteorfaction

Downloadsweekly downloads

10

version

0.5.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability