Skip to content

Commit 06fd4b4

Browse files
committed
Make Travis CI run tests only and Heroku to do the rest as was before
1 parent 46766ac commit 06fd4b4

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ os:
1010
- linux
1111
script:
1212
- yarn test
13-
- yarn build
14-
- yarn exp-publish
15-
before_deploy: rm -rf .cache .tmp node_modules build/client/ios build/client/android
13+
before_deploy: rm -rf node_modules
1614
deploy:
17-
skip_cleanup: true
1815
provider: heroku
1916
api_key:
2017
secure: fNhB+2DcXLoez7unhEMEUlL8WRBdWADn3Ye5Bm5MzFXVY2ZbjhhBaTo/v1XOHKRO/JrLNe7pzoaqwONWbhSTOe8sKBawUNQUAtcaR1MhZeLaCNGACblhc8YYffm4oRvwdv/N6GYZKo2aUsDwgkZmNu4GJFi3eBNXHaVobnzU09nnrs2WHm0JIiDs23z7TcIjTqC8sa7D7Q7LFeNhtsJl54s2s1wGfzEdhkPqc4OGM/87tLgtdwnCTPQs/nbetr6BfFndrT3fYmVbuFe6m4/e94eZHr7D/c2eiWEyb4FZv0FLkndY/7PCV0egUs1uSYkQeQcE2eAv5ZacgqYA9miFw3bhTEinM1ud0CfOxnYYtwniR4X0XxuHMpsVU71olChWnSwt7TvJG/uncjfvmWzWX+VA9f+n6Ya5+C893rledOLMrwJN6R+bqGLxBC0dwFI1Cfhxb/Io4/PjgmK0NNiSWJ+UCr26IEzKEAi7dz0zUqCDdykH9Co7R/hTeBT/rMrE0SYumc66Or4nhZohEFzdQSRBKtG+6xAcmMkLtut15grsxJ9+OvZUIIEoB2PFKuh4ephskEo5UQUQzVJscuFtDC+VIf+4vRwP8lvkV7LF6M8mN3FMyHwDb4+/q9lKIRAu4/fGY8P4NGrMSBgkgQI7CANgDj1mIROPsSVd4JVnpMc=

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,11 @@ yarn start
441441

442442
### Deploying to [Heroku]
443443

444+
1. Add your app to Heroku
445+
2. Allow Heroku to install build time dependencies from the devDependencies in `package.json`: `Settings -> Config Variables -> Add`, KEY: `YARN_PRODUCTION`, VALUE: `false`.
446+
3. Add `EXP_USERNAME` and `EXP_PASSWORD` config variables there as well. They will be used to publish mobile Expo Client applications
447+
4. Deploy your app on Heroku
448+
444449
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
445450

446451
### Heroku Demo

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"private": true,
44
"version": "1.0.0",
55
"main": "src/server",
6-
"cacheDirectories": [".cache"],
6+
"cacheDirectories": [
7+
".unused"
8+
],
79
"engines": {
810
"node": ">= 6.11.1",
911
"npm": ">= 3.10.3",
@@ -23,7 +25,7 @@
2325
"exp-login": "cross-env NODE_ENV=production spin exp login -u $EXP_USERNAME -p $EXP_PASSWORD --non-interactive",
2426
"watch": "spin watch",
2527
"exp-publish": "npm run exp-login && npm run exp -- p --non-interactive",
26-
"heroku-postbuild": "NODE_ENV=production npm run seed",
28+
"heroku-postbuild": "npm run build && npm run exp-publish && npm run seed",
2729
"precommit": "lint-staged",
2830
"cli": "node tools/cli",
2931
"postinstall": "opencollective postinstall",

0 commit comments

Comments
 (0)