Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Merge pull request #473 from magmo/heroku-monorepo
Browse files Browse the repository at this point in the history
Heroku monorepo configuration
  • Loading branch information
tomclose authored May 9, 2019
2 parents 53f3e4b + 2d71785 commit 85c1e8e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
"license": "MIT",
"scripts": {
"test:ci": "test:ci",
"build": "build"
}
"build": "build",
"heroku-postbuild": "npx lerna bootstrap"
},
"cacheDirectories": [
"node_modules",
"packages/wallet/node_modules",
"packages/server/node_modules",
"packages/magmo-wallet-client/node_modules",
"packages/rps/node_modules",
"packages/tictactoe/node_modules",
"packages/wallet-common/node_modules"
]
}
2 changes: 2 additions & 0 deletions packages/server/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: cd packages/server && yarn start
adjudicator-watcher: cd packages/server && yarn start:adjudicator-watcher
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test:ci": "run-s contracts:clear prettier:check 'test:chain --all --ci' test:server",
"watch-server": "nodemon --watch 'src/**/*' -e ts,tsx --exec ts-node ./src/app/server.ts",
"build": "tsc && npx tsc knexfile.ts",
"start": "run-s start:server start-adjudicator-watcher",
"start": "run-s start:server",
"start:server": "node ./lib/app/server.js",
"start:adjudicator-watcher": "node lib/wallet/adjudicator-watcher/index.js",
"prestart": "npm run db:rollback && npm run db:migrate && npm run db:seed",
Expand Down
5 changes: 0 additions & 5 deletions packages/server/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4625,11 +4625,6 @@ lru-cache@^4.0.1:
solc "^0.5.4"
yargs "^12.0.5"

magmo-wallet-common@^0.0.0:
version "0.0.0"
resolved "https://registry.yarnpkg.com/magmo-wallet-common/-/magmo-wallet-common-0.0.0.tgz#7521780d95d03a1524e674f95f4649449a6000bf"
integrity sha512-F496nSmBN6o7reNqfPsdey7TBVLYKp9Uu5XdE8/jO/HRrLJmE7yeigqiv4Jk3mRRpBKUe+fnIz9gZmCchhjwOA==

make-dir@^1.0.0, make-dir@^1.2.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
Expand Down

0 comments on commit 85c1e8e

Please sign in to comment.