heroku

Heroku - Deploying React/Express app and getting 'Failed to load resource' in the console when requesting the chunk.js files

南笙酒味 提交于 2021-01-28 18:47:58
问题 I am getting these errors in the console after my React app has been built and deployed on Heroku. Refused to apply style from 'https://radiant-tor-66940.herokuapp.com/index.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. Failed to load resource: the server responded with a status of 404 (Not Found) main.3174e036.chunk.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) 1.b1e0c624.chunk.js:1

Heroku Flask Gunicorn Command not found

谁说我不能喝 提交于 2021-01-28 16:42:58
问题 Trying to deploy my flask app to Heroku but keep running into this error: 2020-06-18T04:13:43.162139+00:00 heroku[web.1]: State changed from crashed to starting 2020-06-18T04:13:47.317872+00:00 heroku[web.1]: Starting process with command gunicorn learning_flashcards:app 2020-06-18T04:13:49.836638+00:00 heroku[web.1]: Process exited with status 127 2020-06-18T04:13:49.884998+00:00 heroku[web.1]: State changed from starting to crashed 2020-06-18T04:13:49.767236+00:00 app[web.1]: bash: gunicorn

Possible to use WhiteNoise with Django-Compressor?

笑着哭i 提交于 2021-01-28 12:13:43
问题 I'm new with Django, and I'm trying to automate and optimize my deployment for production. At this moment I use WhiteNoise to handle static files, but as far as I know he just handle and compress the static files. Recently I found out about this tool: https://github.com/django-compressor/django-compressor , but I don't know if it really worth it to drop WhiteNoise in order to use this Django-Compressor, since I've never heard of it and every guide recommends to use WhiteNoise for safety and

Installing PIL on heroku instance

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-28 12:11:14
问题 I have created a python-flask application which is hosted on heroku.I amusing PIL imaging library in python. I could not install PIL in heroku instance. I have tried the following ways. method 1: Added PIL=1.1.7 in requirements.txt here I got exception Some externally hosted files were ignored (use --allow-external PIL to allow). method 2: heroku run pip install PIL --allow-unverified=PIL --app=nava-app This helped to install the PIL I got the successfully installed message. Successfully

Push local database data to heroku database

半腔热情 提交于 2021-01-28 11:55:05
问题 I was trying to push my rails project database to heroku's database. I type this heroku pg:push ReadingList_development DATABASE_URL --app calm-eyrie-9110 ( ReadingList_development is my local database name.) However, it shows this error sh: psql: command not found ! Heroku client internal error. ! Search for help at: https://help.heroku.com ! Or report a bug at: https://github.com/heroku/heroku/issues/new Error: psql failed. exit status 32512, output: "" (RuntimeError) Command: heroku pg

node-cron does not work properly?

回眸只為那壹抹淺笑 提交于 2021-01-28 10:29:09
问题 I deployed an app on Heroku: myapp and I wrote some cron code in it: var time = require('time'); var CronJob = require('cron').CronJob; var job = new CronJob({ cronTime: '00 45 12 * * *', onTick: clearReserve, start: true, timeZone: 'Asia/Shanghai' }); My purpose is call the function named 'clearReserve' everyday in the specific time. but it only work in the first day I upload my code to heroku, and never do this cron job again. PS: this "clearReserve" function will manipulate my database, I

Heroku Discord Bot builds but doesn't work when deployed

☆樱花仙子☆ 提交于 2021-01-28 08:23:57
问题 I've deployed a Discord bot(discord.py) with heroku. The status of the bot is "online" in the Heroku's Dashboard however the bot is offline in Discord.I've added the Procfile and enabled the dyno in resources. Is there anything else i have to do?? EDIT: This is my procfile's content - worker :python bot.py Requirements.txt: 回答1: You can check the heroku logs using the following command in the command Prompt of your PC (you need to have Heroku CLI installed) heroku logs -a yourappnamehere any

No package 'gobject-introspection-1.0' found while deploying to Heroku

断了今生、忘了曾经 提交于 2021-01-28 08:13:50
问题 Attempted to deploy python web app to heroku but encountered the following errors: remote: running build_ext remote: Package gobject-introspection-1.0 was not found in the pkg-config search path. remote: Perhaps you should add the directory containing `gobject-introspection-1.0.pc' remote: to the PKG_CONFIG_PATH environment variable remote: No package 'gobject-introspection-1.0' found remote: Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.46.0')'

Can't push my project to Heroku…rake aborted Sprockets file not found

喜你入骨 提交于 2021-01-28 08:01:34
问题 so i'm trying to push my project onto Heroku but I keep running into this issue. I've tried various different options and it still giving me the same error The error is: remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: Yarn executable was not detected in the system. remote: Download Yarn at https://yarnpkg.com/en/docs/install remote: I, [2018-07-11T15:38:38.244799 #1469] INFO -- : Writing /tmp/build

Upload image to heroku using react native

时光怂恿深爱的人放手 提交于 2021-01-28 08:00:57
问题 i am trying to upload image from react native to heroku express app in public/images/ folder. It showing me the success message but there is no image in the images folder. Meanwhile when i try this code on localhost, that works fine.. router.post('/add', (req, res) => { let imageFile = req.files.photo; let fileName = Date.now(); let imgName = fileName+req.files.photo.name; let dirName = __dirname.replace('routes','public') dirName = dirName+'/images/'; let path = dirName+imgName; imageFile.mv