Closed lindsaymacvean closed 6 years ago
Ok figured out part of it.
Edit tools/deploy.js and uncomment the lines for Heroku, then add the app name where ever <app>
.
Run heroku login
Next run yarn run deploy
However I get this error
error /tmp/build_1a33850f34969724008619c0fc2773d6/node_modules/sqlite3: Command failed.
remote: Exit code: 1
remote: Command: node-pre-gyp install --fallback-to-build
remote: Arguments:
remote: Directory: /tmp/build_1a33850f34969724008619c0fc2773d6/node_modules/sqlite3
remote: Output:
remote: node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v64-linux-x64.tar.gz
remote: node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@10.11.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
Ok so I altered the package.json to update sqlite3 to a greater version than 3.1.13
"sqlite3": ">=3.1.13",
Then I removed the yarn.lock file. Then I did
yarn build
yarn deploy
And it works. Hope this helps other people who are googling in future.
I got a build fail initially. I am just trying to figure out if I can create a simple Procfile to run it.