Merge pull request #651 from cmasone-attic/appspec

Add prod_build rule for splore
This commit is contained in:
cmasone-attic
2015-11-18 15:41:28 -08:00
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# This is an appspec.yml template file for use with AWS CodeDeploy.
# The lines in this template starting with the hashtag symbol are
# instructional comments and can be safely left in the file or
# ignored.
# For help completing this file, see the "AppSpec File Reference" in the
# "AWS CodeDeploy User Guide" at
# http://docs.aws.amazon.com/codedeploy/latest/userguide/app-spec-ref.html
version: 0.0
os: linux
# During the Install deployment lifecycle event (which occurs between the
# BeforeInstall and AfterInstall events), copy the specified files
# in "source" starting from the root of the revision's file bundle
# to "destination" on the instance.
# Specify multiple "source" and "destination" pairs if you want to copy
# from multiple sources or to multiple destinations.
# If you are not copying any files to the instance, then remove the
# "files" section altogether. A blank or incomplete "files" section
# may cause associated deployments to fail.
files:
- source: www
destination: /var/www/html

View File

@@ -19,6 +19,7 @@
"scripts": {
"start": "NOMS_SERVER=http://localhost:8000 watchify -o out.js -v -d main.js",
"build": "NOMS_SERVER=http://localhost:8000 NODE_ENV=production browserify main.js > out.js",
"prod_build": "NOMS_SERVER=http://ds.noms.io NODE_ENV=production browserify main.js > out.js",
"test": "rm -f out.js && eslint *.js && flow"
},
"browserify": {