heroku

React axios calls to Express API in Heroku deployment

ぃ、小莉子 提交于 2021-02-18 08:39:18
问题 I have a React todo app I built using create-react-app and I built a simple express server to query mongoDB to get all the appointment objects. It works just as expected when I am running it on my machine. The front end spins up on localhost:3000 and the server on localhost:3001 . I use axios to make a get request to localhost:3000/api/appointments to load all the appointments into the App.js state. I uploaded it to Heroku and I got a CORS error on the request. After that, I tried to just use

Hiding settings.py passwords for Heroku Django deployment

眉间皱痕 提交于 2021-02-18 07:51:41
问题 I have sensitive data (database passwords) in settings.py and I was advised to upload my Django project to a github repository before pushing it to Heroku on their "Getting Started with Django on Heroku". If I put settings.py in .gitignore, then presumably it won't get deployed with my project. How can I prevent settings.py from being exposed but still get it deployed with my project ? 回答1: You can use environment variables (with heroku config:add SECRET=my-secret ) to setup sensitive data

Deploying a TCP server to Heroku

≡放荡痞女 提交于 2021-02-18 03:02:04
问题 I have a TCP server coded in node.js. I'd like to put it up on Heroku because it's a free service and I don't need anything more than what their free plan offers. Now, I know very little about the inner workings of Heroku and I'm pretty new to the whole thing so I have a few questions. Firstly, is it even possible to deploy a TCP (non-web) server? I've read that Heroku doesn't like node.js's net because it doesn't support websockets and that I should use socket.io. So I've switched my server

Deploying a TCP server to Heroku

流过昼夜 提交于 2021-02-18 03:01:13
问题 I have a TCP server coded in node.js. I'd like to put it up on Heroku because it's a free service and I don't need anything more than what their free plan offers. Now, I know very little about the inner workings of Heroku and I'm pretty new to the whole thing so I have a few questions. Firstly, is it even possible to deploy a TCP (non-web) server? I've read that Heroku doesn't like node.js's net because it doesn't support websockets and that I should use socket.io. So I've switched my server

Errors caused by gunicorn procfile in Heroku

孤人 提交于 2021-02-16 10:21:20
问题 I'm trying to deploy a small django app on Heoroku using the documentation provided. But my app does not run and when I look at the logs on Heroku it looks like the problem is with the procfile. Here are the contents of the procfile. Is this the correct syntax? web: gunicorn hashem3.wsgi -b 0.0.0.0:$PORT And here is what the Heroku logs show: 2012-07-21T03:02:58+00:00 heroku[slugc]: Slug compilation started 2012-07-21T03:04:28+00:00 heroku[api]: Add shared-database:5mb add-on by 2012-07-21T03

How to install wordpress with postgresql

╄→гoц情女王★ 提交于 2021-02-16 05:46:09
问题 I m newbie in wordpress. i just install wordpress 4.2.2. I want to install wordpress on heroku with postgresql. Before that i try to install wordpress with postgresql on my localhost. I follow the PG4WP installation steps but still my wordpress install with mysql database its not giving me option to install with postgresql. I am using Wordpress 4.2.2 version and for database i am using postgresql 9.1 回答1: It might be a little late, but the current answers are and were wrong. It is possible to

FTP timing out on Heroku

爱⌒轻易说出口 提交于 2021-02-11 18:11:23
问题 Using Apache Commons FTPClient in a Scala application works as expected on my local machine, but always times out when running on Heroku. Relevant code: val ftp = new FTPClient ftp.connect(hostname) val success = ftp.login(username, pw) if (success) { ftp.changeWorkingDirectory(path) //a logging statement here WILL print val engine = ftp.initiateListParsing(ftp.printWorkingDirectory) //a logging statement here will NOT print while (engine.hasNext) { val files = engine.getNext(5) //do stuff

FTP timing out on Heroku

≡放荡痞女 提交于 2021-02-11 18:09:30
问题 Using Apache Commons FTPClient in a Scala application works as expected on my local machine, but always times out when running on Heroku. Relevant code: val ftp = new FTPClient ftp.connect(hostname) val success = ftp.login(username, pw) if (success) { ftp.changeWorkingDirectory(path) //a logging statement here WILL print val engine = ftp.initiateListParsing(ftp.printWorkingDirectory) //a logging statement here will NOT print while (engine.hasNext) { val files = engine.getNext(5) //do stuff

Failed to collect Maven dependencies in Java HelloWorld when deploying to heroku

倖福魔咒の 提交于 2021-02-11 17:29:43
问题 I'm playing with Java and heroku following the heroku guide. But with few modifications. In this case I use JDK 1.7, Jetty 8.1.2.v20120308 and Maven dependencies plugin 2.7 (Because it seems, 2.4 couldn't be built) All is built ok locally with mvn package but when I use git push heroku master to deploy on heroku, I get this message: [ERROR] Failed to execute goal on project helloart: Could not resolve dep endencies for project main.java:helloart:jar:1.0-SNAPSHOT: Failed to collect dep

How to fix Heroku application error with 'File not found'?

血红的双手。 提交于 2021-02-11 17:01:08
问题 I'm trying to run heroku and can't seem to get the application to run. The error log states: Last login: Sun Jan 12 09:37:02 on ttys001 (base) adam:dash adam$ heroku logs --tail › Warning: heroku update available from 7.35.0 to 7.35.1. 2020-01-12T14:36:05.716972+00:00 app[web.1]: [2020-01-12 14:36:05 +0000] [10] [INFO] Worker exiting (pid: 10) 2020-01-12T14:36:06.163957+00:00 app[web.1]: [2020-01-12 14:36:06 +0000] [4] [INFO] Shutting down: Master 2020-01-12T14:36:06.164141+00:00 app[web.1]: