/nightmare-heroku-example

Nightmare Heroku example with deploy script and detailed instructions

Primary LanguageJavaScriptMIT LicenseMIT

Nightmare Heroku Example

Nightmare

Heroku


GitPunch
⭐ Star and get notified about new releases via email.

Getting Started

  • Initial steps
    • Install Node.js and Yarn.
    • Install Heroku CLI CLI and Git.
    • Download or clone this repository.
    • Open a command prompt in the project folder.

Install dependencies:

yarn install

Start the script:

yarn start

Development

Start the script in development mode:

yarn dev

Set up Heroku app

Create a new app from the Heroku Dashboard.

Go to Settings / Buildpacks and add the following buildpacks:

https://github.com/heroku/heroku-buildpack-apt
https://github.com/captain401/heroku-buildpack-xvfb.git
https://github.com/benschwarz/heroku-electron-buildpack.git
heroku/nodejs

Modify the stack:

heroku stack:set cedar-14 --app HEROKU_APP_NAME

Create a Git repository (if you don't have one already)

Add the remote Heroku repository:

git remote add heroku https://heroku:HEROKU_API_KEY@git.heroku.com/HEROKU_APP_NAME.git

You can go to the Heroku Dashboard / {profile picture} / Account settings / API Key to get it.

Deploy to Heroku:

yarn deploy

Go to the Heroku Dashboard / {app} / Resources and turn the web Dyno off and the worker Dyno on.

Deployment

Deploy to Heroku:

yarn deploy