Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge branch 'development' into greenkeeper/gatsby-1.9.154
Browse files Browse the repository at this point in the history
  • Loading branch information
spences10 authored Jan 12, 2018
2 parents 4443f0a + 49fc34c commit b7f0281
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ node_modules
.cache/
# Build directory
public/
scottblog/
.DS_Store
yarn-error.log
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ script:
- npm run deploy

after_script:
- npm run alias
on:
branch: development
- npm run alias:dev
branch: master
- npm run alias:prod

# - if [ "$TRAVIS_BRANCH" = "develop" ]; then npm run devScript; fi
# - if [ "$TRAVIS_BRANCH" = "master" ]; then npm run prodScript; fi

env:
global:
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,20 @@
"keywords": ["gatsby", "personal", "blog"],
"main": "n/a",
"now": {
"name": "public",
"alias": "scottspence.now.sh"
"name": "scottblog",
"alias:dev": "scottspence.now.sh",
"alias:prod": "blog.scottspence.me"
},
"scripts": {
"clean": "rm -rf .cache/ && rm -rf public/",
"build": "gatsby build",
"deploy:now": "npm run clean && npm run build && now public/",
"clean": "rm -rf .cache/ && rm -rf scottblog/",
"build": "gatsby build && mv public scottblog",
"deploy:now": "npm run clean && npm run build && now scottblog/",
"dev": "gatsby develop",
"format": "pretty-quick",
"precommit": "pretty-quick --staged",
"deploy": "now public/ -e NODE_ENV=production --token $NOW_TOKEN",
"alias": "now alias --token=$NOW_TOKEN"
"deploy": "now scottblog/ -e NODE_ENV=production --token $NOW_TOKEN",
"alias:dev": "now alias:dev --token=$NOW_TOKEN",
"alias:prod": "now alias:prod --token=$NOW_TOKEN"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit b7f0281

Please sign in to comment.