Skip to content

kireerik/nightmare-heroku-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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