Socket
Book a DemoInstallSign in
Socket

jitsu-env

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jitsu-env

Prepares package.json for deployment in different Nodejitsu environments (staging, production)

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Nodejitsu Environment Manager

Prepares your package.json for deployment in different Nodejitsu applications.

Installation

$ npm install -g jitsu-env

Usage

Create a package.<env>.json file for each environment you'd like to deploy to. e.g. package.staging.json.

Then run

$ jitsu-env staging

to copy properties specified in package.staging.json into package.json. The original package.json is copied to package.base.json.

To reset your package.json to the original values simply call

$ jitsu-env base

Example

package.json

{
	"name": "my-app"
}

package.staging.json

{
	"name": "my-app-staging",
	"subdomain": "staging-myapp",
	"domains": [
		"staging-www.myapp.com",
		"staging-api.myapp.com"
	],
	"scripts": {
		"predeploy": "gulp build:staging"
	}
}

package.production.json

{
	"name": "my-app",
	"subdomain": "myapp",
	"domains": [
		"www.myapp.com",
		"api.myapp.com"
	],
	"scripts": {
		"predeploy": "gulp build:production"
	}
}

Keywords

nodejitsu

FAQs

Package last updated on 23 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts