heroku

Vue+Webpack app deploy on heroku not working when page is refreshed

走远了吗. 提交于 2020-08-08 06:10:07
问题 I generated a vue app using vue-cli with webpack template and deployed it to heroku using this guide. I was able to run it without problem but when I refresh the page, or I accessed a sub route directly it fails. server.js var express = require('express') var path = require('path') var serveStatic = require('serve-static') app = express() app.use(serveStatic(__dirname)) var port = process.env.PORT || 5000 app.listen(port) console.log('server started '+ port) router.js My vue router config

Deploying Node.js app to Heroku. Error NPM_CONFIG_LOGLEVEL=error

故事扮演 提交于 2020-08-05 11:06:40
问题 I am deploying my node.js application on heroku but when i run my app it shows me Application error and when i check my logs file i found NPM_CONFIG_LOGLEVEL=error My package.json file is: { "name": "wework-1", "version": "1.0.0", "description": "We Work Meteor, a job board and developer directory for Meteor specific work https://www.weworkmeteor.com", "main": "", "engines": { "node": "= 4.5.0", "npm": "= 3.9.6" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint":

Deploying Node.js app to Heroku. Error NPM_CONFIG_LOGLEVEL=error

强颜欢笑 提交于 2020-08-05 11:06:36
问题 I am deploying my node.js application on heroku but when i run my app it shows me Application error and when i check my logs file i found NPM_CONFIG_LOGLEVEL=error My package.json file is: { "name": "wework-1", "version": "1.0.0", "description": "We Work Meteor, a job board and developer directory for Meteor specific work https://www.weworkmeteor.com", "main": "", "engines": { "node": "= 4.5.0", "npm": "= 3.9.6" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint":

Deploying Node.js app to Heroku. Error NPM_CONFIG_LOGLEVEL=error

≡放荡痞女 提交于 2020-08-05 11:05:33
问题 I am deploying my node.js application on heroku but when i run my app it shows me Application error and when i check my logs file i found NPM_CONFIG_LOGLEVEL=error My package.json file is: { "name": "wework-1", "version": "1.0.0", "description": "We Work Meteor, a job board and developer directory for Meteor specific work https://www.weworkmeteor.com", "main": "", "engines": { "node": "= 4.5.0", "npm": "= 3.9.6" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint":

How to Deploy Node Applications: Heroku vs Now.sh

蓝咒 提交于 2020-08-04 19:02:07
As Node.js continues to gain in popularity, new tutorials pop up teaching you to write server-side JavaScript apps and APIs. Once you’ve built your shiny new Node app, though, what then? In this article, I’m going to take a look at a couple of options for deploying your Node applications. We’ll take a look at Now.sh and Heroku . I’ll explain how to deploy your code to each platform and we’ll end the article with a short summary of the pros and cons. I’ll pay attention to options for monitoring, ease of use, offered functionality and what the free hosting plan includes. Deployment with Heroku

Problems configuring deployment with Heroku/gunicorn/django

与世无争的帅哥 提交于 2020-08-04 07:07:03
问题 I'm trying to run my django application on heroku. Folder structure: app/ Procfile docs/ ... project/ manage.py wsgi.py <django apps> Procfile web: gunicorn --pythonpath="$PWD/project" wsgi:application --log-file=- Error I'm getting: 2015-02-16T16:05:00.646316+00:00 heroku[web.1]: Starting process with command `gunicorn --pythonpath="$PWD/project" wsgi:application --log-file=-` 2015-02-16T16:05:02.697633+00:00 app[web.1]: [2015-02-16 16:05:02 +0000] [3] [INFO] Listening at: http://0.0.0.0

Problems configuring deployment with Heroku/gunicorn/django

感情迁移 提交于 2020-08-04 07:05:01
问题 I'm trying to run my django application on heroku. Folder structure: app/ Procfile docs/ ... project/ manage.py wsgi.py <django apps> Procfile web: gunicorn --pythonpath="$PWD/project" wsgi:application --log-file=- Error I'm getting: 2015-02-16T16:05:00.646316+00:00 heroku[web.1]: Starting process with command `gunicorn --pythonpath="$PWD/project" wsgi:application --log-file=-` 2015-02-16T16:05:02.697633+00:00 app[web.1]: [2015-02-16 16:05:02 +0000] [3] [INFO] Listening at: http://0.0.0.0

Heroku CLI authentication issue

依然范特西╮ 提交于 2020-08-02 04:56:25
问题 After a fresh install of Heroku on Windows 7, I can't seem to authenticate from the command-line. Running the command: heroku login prompts me to enter my credentials. After doing so, I received an error: heroku: Enter your login credentials Email: my_email Password: ************ Error: ENOENT: no such file or directory, open 'z:/_netrc' I am using PowerShell, and when I run the command cat z:/_netrc , I get this error: cat : Cannot find drive. A drive with the name 'z' does not exist. Z: is

Heroku “State changed from starting to down Stopping all processes with SIGTERM”

旧街凉风 提交于 2020-08-01 09:02:32
问题 After booting up my Node.js Heroku app with this Procfile: web: node www/main.js I used to get: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch So I have changed my Procfile to a generic command to get around this, following from here, using: start: node www/main.js And I am still getting a shut down after 60 seconds. This is the error(s) now: 2015-01-20T13:04:01.452819+00:00 heroku[worker.1]: State changed from up to starting 2015-01-20T13:04:02

Could not find a version that satisfies the requirement pkg-resources==0.0.0

浪尽此生 提交于 2020-07-31 16:39:10
问题 My app is deployed on heroku . When I push my code via git push heroku master . It gives me this error Collecting pkg-resources==0.0.0 (from -r requirements.txt (line 14)) remote: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r requirements.txt (line 14)) (from versions: ) remote: No matching distribution found for pkg-resources==0.0.0 (from -r requirements.txt (line 14)) remote: ! Push rejected, failed to compile Python app. requirement.txt amqp==2.1.1