Comments (3)
I added a few steps to the instructions included in the 'Getting Started' section in the Readme file. This worked for me.
-
git clone --depth 1 [email protected]:oscarmorrison/nightmare-heroku [new-project-name]
-
cd [new-project-name]
-
rm -rf .git
-
git init
-
setup git remote repository on github.com from existing code
git remote add origin [email protected]:[username]/[new-project-name].git
git add -A
git commit -m "Initial commit"
git push -u origin master
heroku create
heroku stack:set cedar-14
- set build packs
heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt &&
heroku buildpacks:add --index 2 https://github.com/captain401/heroku-buildpack-xvfb.git &&
heroku buildpacks:add --index 3 https://github.com/causztic/heroku-electron-buildpack.git &&
heroku buildpacks:add --index 4 https://github.com/heroku/heroku-buildpack-nodejs.git
git push heroku master
- goto heroku dashboard and select created app; install
Heroku Scheduler
add-on heroku ps:scale web=1
node ./index.js
to verify nightmare runs correctly locally; npm install needs to be run. The following output should be seen.
Welcome to Nightmare scrape
==========
NightmareJS on Heroku the ultimate scraping setup
=========
All done
- Open heroku app from heroku dashboard. 'Application error' is displayed because no routes have been defined yet so this is normal in this case.
heroku logs
to check output for any errors. If everything went well, near the bottom of the output the 'Welcome to Nightmare scrape' messages as displayed above should appear. Now, you can work on the rest of your code knowing that nightmarejs will work on heroku as it works locally.
from nightmare-heroku.
@f-flores want to do a PR
from nightmare-heroku.
Closed by #11
from nightmare-heroku.
Related Issues (11)
- add project logo HOT 1
- libXss not found HOT 6
- Pairing with a web server? HOT 3
- SyntaxError: Unexpected token ILLEGAL HOT 1
- App not compatible with buildpack HOT 1
- electron error: symbol lookup error, undefined symbol HOT 10
- Heroku crashes after starting HOT 3
- Cedar-14 is EOL HOT 13
- Unable to clone repo despite public ssh HOT 2
- app unreachable - heroku has suggestions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightmare-heroku.