heroku

react app not rendering after transpiling with webpack (BabelJS)

℡╲_俬逩灬. 提交于 2020-01-06 18:12:27
问题 I am trying to deploy my react app to heroku, but when using heroku local , only my html renders: <!DOCTYPE html> <html lang="en"> <head> <title>TimeStamp Microservice</title> <style> .App { text-align: center; position: relative; max-width: 900px; margin: 0 auto; margin-top: 16%; } .button { margin-top: 1%; } input { text-align: center; } </style> </head> <body> <div id="root"></div> <script src="app.js"></script> </body> </html> I am confused since I believe I am using the correct rendering

CSS is not working after push to heroku but works on localhost

风流意气都作罢 提交于 2020-01-06 15:09:14
问题 Udate: the complete code is here: https://github.com/Marc585/smartforce2 I'm pretty new to coding and i'm following the onemonthrails tutorial where i'm building a pinterest clone. When i add an image we added some css box arround it that it looks nicer. it works fine on my localhost and shows different pins side by side with a nice little box arround it. After pushing it to heroku it only shows the image without the css box and all images are below.! This is how it looks on my localhost

Heroku crashing with Rails 5 rc1

爷,独闯天下 提交于 2020-01-06 15:06:26
问题 I have upgraded from rails 4 to 5. Great. Added Foundation 6 topbar, pushed to heroku. Nothing failed but website not loading. heroku run logs showed this: <div class="title-bar" data-responsive-toggle="example-menu" data-hide-for="medium"> <button class="menu-icon" type="button" data-toggle></button> <div class="title-bar-title"> <%= image_tag("o-section/mascot.svg") %> </div> </div> The error was: ActionView::Template::Error (Unexpected token punc «(», expected punc «:» (line: 23041, col:

Difficult time using Mezzanine on Heroku - issues with Procfile and dictionary Value Error

不想你离开。 提交于 2020-01-06 14:04:29
问题 Using the following tutorials and github templates here, here, and here , I've spent the better part of the evening wrestling with django and mezzanine. Right now I've got a mezzanine-project , called uccdev which is working nicely when I run python manage.py runserver . Now, I want to use gunicorn and foreman to get work with thing, so that I can later upload my projects to heroku. According to Josh Finnie, Adding the below Procfile got Mezzanine running on Gunicorn and successfully got

Difficult time using Mezzanine on Heroku - issues with Procfile and dictionary Value Error

被刻印的时光 ゝ 提交于 2020-01-06 14:03:01
问题 Using the following tutorials and github templates here, here, and here , I've spent the better part of the evening wrestling with django and mezzanine. Right now I've got a mezzanine-project , called uccdev which is working nicely when I run python manage.py runserver . Now, I want to use gunicorn and foreman to get work with thing, so that I can later upload my projects to heroku. According to Josh Finnie, Adding the below Procfile got Mezzanine running on Gunicorn and successfully got

django heroku media files 404 error with amazon s3

浪子不回头ぞ 提交于 2020-01-06 13:56:54
问题 So i have followed this question How to set-up a Django project with django-storages and Amazon S3, but with different folders for static files and media files? in order to get my django app uploading media files to my amazon S3 bucket. I am using django-oscar by the way. Everything seemed to work fine right after i uploaded the image, but when i reload the page, the images disappear and i get a 404 error. My static files work fine.. i have found no problems. UPDATE: I have changed my bucket

Rails creating records with timestamps set to nil, 'heroku restart' solves it

旧巷老猫 提交于 2020-01-06 13:12:01
问题 I have a Rails 4 application that is showing some odd behavior on the live production site. Often when creating a Post , the default Rails timestamps (created_at and updated_at) are being set to nil , and the only way to solve it is to restart the Heroku dynos. After I restart Heroku, I can create Posts again. The Post is being created, but its timestamps are simply set to nil . So when I click 'create post', the server throws a 500 error because I have some code in my post view comparing

Rails creating records with timestamps set to nil, 'heroku restart' solves it

倾然丶 夕夏残阳落幕 提交于 2020-01-06 13:11:02
问题 I have a Rails 4 application that is showing some odd behavior on the live production site. Often when creating a Post , the default Rails timestamps (created_at and updated_at) are being set to nil , and the only way to solve it is to restart the Heroku dynos. After I restart Heroku, I can create Posts again. The Post is being created, but its timestamps are simply set to nil . So when I click 'create post', the server throws a 500 error because I have some code in my post view comparing

Realtime websocket-like behavior possible on Heroku?

a 夏天 提交于 2020-01-06 12:36:52
问题 I am considering making a chess app in Rails where moves need to be pushed from the server to the client browser asynchronously (ideally with websockets). However, from what little research I've done it appears that Heroku does not support websockets. But there is an alternative in using socket.io configured to use long polling instead of websockets. Is long polling insufficient to achieve latency requirements for something like a 5 minute blitz game of chess? 回答1: The Heroku Cedar stack

Realtime websocket-like behavior possible on Heroku?

谁都会走 提交于 2020-01-06 12:36:07
问题 I am considering making a chess app in Rails where moves need to be pushed from the server to the client browser asynchronously (ideally with websockets). However, from what little research I've done it appears that Heroku does not support websockets. But there is an alternative in using socket.io configured to use long polling instead of websockets. Is long polling insufficient to achieve latency requirements for something like a 5 minute blitz game of chess? 回答1: The Heroku Cedar stack