heroku

Error while pushing to Heroku: Cannot find module 'node-linux-x64/package.json'

拜拜、爱过 提交于 2020-06-01 03:17:09
问题 When deploying a fullstack Javascript app to Heroku, I receive the following error: Error: Cannot find module 'node-linux-x64/package.json' There's also a syntax error, but I don't believe that's the cause. I'm a Mac user, so I'm unsure of what's going on. I've checked for the syntax error, but found nothing. I also tried uninstalling and reinstalling Node, etc... Output: remote: -----> Installing dependencies remote: Prebuild detected (node_modules already exists) remote: Rebuilding any

ISSUES Defining Cron jobs in Procfile (Heroku) using apscheduler for Django project

人盡茶涼 提交于 2020-05-27 05:11:08
问题 I am having a problem scheduling a cron job which requires scraping a website and storing it as part of the model (MOVIE) in the database. The problem is that the model seems to get loaded before Procfile is executed. How should I create a cron job which runs internally in the background and storing scraped information into the database? Here are my codes: Procfile: web: python manage.py runserver 0.0.0.0:$PORT scheduler: python cinemas/scheduler.py scheduler.py: # More code above from

could not connect to server: “/var/run/postgresql/.s.PGSQL.5432”?

走远了吗. 提交于 2020-05-26 10:53:36
问题 I have a simple web page in Ruby On Rails with postgresql database, but when I run sever I have this error, I don't Know that I do. I use postgresql because heroku need that the aplication is in postgresql. I work in ubuntu 13.10 The error is: PG::ConnectionBad could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? I need help thanks 回答1: Just create a softlink like this,this

How to disable prepared statement in heroku with postgres database

好久不见. 提交于 2020-05-25 14:11:07
问题 I fixed an issue on my rails project locally (with postgres config) while adding in database.yml this statement: test: prepared_statements: false The bug that I fixed was related to this issue: PG::ProtocolViolation: ERROR: bind message supplies 2 parameters, but prepared statement "a24" requires 1 Now, I want to fix it on my production app hosted on Heroku with a postgres database. I don't know how to disable prepared statement as the database.yml is automatically generated. I tried to

Heroku Custom Domain Not Working

独自空忆成欢 提交于 2020-05-24 20:00:43
问题 What is the correct way to connect a Heroku app with a custom domain? This is how I did it in the past: Point Godaddy's DNS to heroku's provided target (example: https://peaceful-escarpment-22825.herokuapp.com) Turn on domain forwarding on the domain Add domain to Heroku in the settings For some reason now my provided target from Heroku is like this: mycustomdomain.com.herokudns.com. When I add that DNS to GoDaddy I get a There's nothing here, yet. page. Where am I going wrong? Thanks! 回答1: I

Heroku transfer db from one app to another

送分小仙女□ 提交于 2020-05-24 08:42:07
问题 I need to transfer db from app_1 to app_2 I created backup on app_1 Then ran: heroku pg:backups restore HEROKU_POSTGRESQL_COLOR --app app_2 heroku pgbackups:url --app app_1 HEROKU_POSTGRESQL_COLOR = database URL for app_2 Then I get: ! `pg:backups` is not a heroku command. ! Perhaps you meant `pgbackups`. ! See `heroku help` for a list of available commands. So I ran: heroku pgbackups:restore HEROKU_POSTGRESQL_COLOR --app app_2 heroku pgbackups:url --app app_1 Then I get the following: !

Trying to push my app to heroku gives me this error FileNotFoundError: [Errno 2] No such file or directory: '/app/gettingstarted/media'

怎甘沉沦 提交于 2020-05-23 06:51:48
问题 While trying to push my app I get the follwing error FileNotFoundError: [Errno 2] No such file or directory: '/app/gettingstarted/media' But it does exist which confuses me.My file structure that leads to it is this src/gettingstarted/media Media is an empty directory. My pushes were working just last night. Heres the result of me running git push heroku master Counting objects: 13, done. Delta compression using up to 4 threads. Compressing objects: 100% (12/12), done. Writing objects: 100%

Gunicorn returns an error when running heroku logs

拜拜、爱过 提交于 2020-05-19 10:53:09
问题 When running heroku logs --tail I am getting the following error looping infinitely. The main error is this "unexpected extra argument" That I can't understand. My procfile is web: gunicorn app:app and my main ".py" file is app.py. So the procfile is fine. Don't really know what's happening here. Thanks in advance [2020-05-06 22:18:21 +0000] [4256] [INFO] Worker exiting (pid: 4256) 2020-05-06T22:18:21.783472+00:00 app[web.1]: [2020-05-06 22:18:21 +0000] [4258] [INFO] Booting worker with pid:

Deploy to Heroku failed. move-file incompatible with node version

萝らか妹 提交于 2020-05-17 07:46:08
问题 I am struggling to deploy a new rails 6 app to heroku. It runs fine on my local. During the deployment process I receive the following output. Unfortunately, I am new to webpack and yarn. It seems like a version / dependency issue with move-file which in turn seems to be a dependency for webpacker. However, I have no idea how to resolve this. It seems to come down to this line: error move-file@2.0.0: The engine "node" is incompatible with this module. Expected version ">=10.17". Got "10.15.3"

How to get VS Code Debug to work with Foreman and nf start

微笑、不失礼 提交于 2020-05-17 06:05:38
问题 I am using this base Heroku project for a Node cluster environment. https://github.com/heroku-examples/node-workers-example However since it uses foreman to create multiple processes on start, I can't figure out how to connect it to VS Code Debug using a launch.json file like I normally would. This is the start command. "scripts": { "start": "nf start", } 回答1: It took me a little while to figure out a workable debugging methodology.. but to debug the server, this is what I am currently using: