heroku

Django Heroku no module named 'my app name'

北城以北 提交于 2020-05-16 01:09:29
问题 I'm trying to deploy my first Django app to Heroku. I was able to migrate the database and create a superuser, but now I'm stuck on this: [2018-05-19 22:51:01 +0000] [4] [INFO] Listening at: http://0.0.0.0:31247 (4) 2018-05-19T22:51:01.283512+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [4] [INFO] Using worker: sync 2018-05-19T22:51:01.287214+00:00 app[web.1]: [2018-05-19 22:51:01 +0000] [8] [INFO] Booting worker with pid: 8 2018-05-19T22:51:01.292792+00:00 app[web.1]: [2018-05-19 22:51:01

Push rejected, failed to compile Python app.| I can't deploy a Django app to Heroku

末鹿安然 提交于 2020-05-15 21:45:30
问题 I'm beginner and learned how to deploy a Django app to production with this article https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment. Author of this has django app https://github.com/mdn/django-locallibrary-tutorial that I can push to heroku. I have ~copied/pasted this and added some things https://github.com/Altay02/altai_application1. I can't push my repository to heroku and i can't find different between my and him repo that causes the problem. I've tried to

Heroku - View Not Found - FileFinderView InvalidArgumentException

こ雲淡風輕ζ 提交于 2020-05-15 09:29:08
问题 This is consuming the last 2 days of my life. Locally everything is working fine but when my code is deployed to Heroku, Laravel can't find the index view. It's my understanding this is some caching issue, so I have tried most of Artisan's commands to clean the cache: php artisan config:cache php artisan route:cache php artisan view:clear php artisan clear-compiled This is my route, I'm serving a SPA: Route::get('/{any}', 'HomeController@main')->where('any', '.*'); And this is the stack trace

Heroku: How to release an existing image in gitlab CI/CD?

我与影子孤独终老i 提交于 2020-05-15 08:27:27
问题 I would like to deploy my application as a container from Gitlab CI/CD pipeline. A few days ago I could deploy my docker image as written in the heroku devCenter. docker login --username=_ --password=$(heroku auth:token) registry.heroku.com and pushed it to the heroku registry. docker tag imageregistry.heroku.com/app/process-type docker push registry.heroku.com/app/process-type But then they changed the deploy in 2 steps heroku cointainer:push heroku container:release Before the update it was

How to run two servers in heroku

寵の児 提交于 2020-05-15 08:04:06
问题 I have built a project in angular 9 for front end and nodejs as backend server. Now i am running node appserver.js for running the backend server. This listens to port 9090 as default. In another terminal i am running ng serve to run my angular app in port 4200 asusual. I have a service in angular app that sends and receives messages from server. I have used Websocket class to connect to the port 9090. My app works fine in local. But now how could i deploy in heroku. Heroku gives a random

How to run two servers in heroku

时间秒杀一切 提交于 2020-05-15 08:04:03
问题 I have built a project in angular 9 for front end and nodejs as backend server. Now i am running node appserver.js for running the backend server. This listens to port 9090 as default. In another terminal i am running ng serve to run my angular app in port 4200 asusual. I have a service in angular app that sends and receives messages from server. I have used Websocket class to connect to the port 9090. My app works fine in local. But now how could i deploy in heroku. Heroku gives a random

React app crashes on Heroku after using npm install

天大地大妈咪最大 提交于 2020-05-14 10:53:26
问题 My ReactJS app always crashes whenever I npm install any module. You can reproduce the problem by doing this on the terminal. create-react-app [name of project] cd [name of project] git init heroku git:remote -a [name of heroku app] git add . git commit -m "init" git push heroku master You will see that everything works fine, but try this afterwards. npm install react-dom (or any package/modules. Using --save also produces the same error) git add -u git commit -m "new module" git push heroku

upload file from url to s3 bucket

走远了吗. 提交于 2020-05-14 10:43:48
问题 I have a nodejs program running in Heroku which gives me the URL of files. These files need to be stored in an s3 bucket. It is my understanding that there is no way to upload a file from a url directly to an s3 bucket. How would you suggest I get the files from the URL to the s3 bucket? I've seen talk of using an EC2 instance but would like to avoid that if possible. Is there anyway to do this using just heroku and S3? 回答1: I understand this is tagged node-js , but if someone needs this for

Connecting to mongodb using mongoose and Fixie (Heroku add-on)

为君一笑 提交于 2020-05-13 07:30:40
问题 I have a mongodb database hosted on an Atlas MongoDB Cloud cluster. I'm currently accessing the database in my node.js application using mongoose: mongoose.connect("mongodb://user:pw@cluster0-shard-00-00-***.mongodb.net:***,cluster0-shard-00-01-***.mongodb.net:***,cluster0-shard-00-02-***.mongodb.net:***/admin?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin"); Because Atlas MongoDB Cloud have a whitelist, and Heroku doesn't provide the possibility to obtain a fixed IP address for my

Connecting to mongodb using mongoose and Fixie (Heroku add-on)

旧城冷巷雨未停 提交于 2020-05-13 07:30:28
问题 I have a mongodb database hosted on an Atlas MongoDB Cloud cluster. I'm currently accessing the database in my node.js application using mongoose: mongoose.connect("mongodb://user:pw@cluster0-shard-00-00-***.mongodb.net:***,cluster0-shard-00-01-***.mongodb.net:***,cluster0-shard-00-02-***.mongodb.net:***/admin?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin"); Because Atlas MongoDB Cloud have a whitelist, and Heroku doesn't provide the possibility to obtain a fixed IP address for my