heroku

Precompiling uploaded assets

孤者浪人 提交于 2020-01-03 05:05:15
问题 I have a rails 3.1 application where users upload pictures. I am storing them in /assets/images since that is the path image_tag looks for instead of public/images. Everything works fine in development but I deployed to Heroku and it gives me this error: ActionView::Template::Error (image_name.jpeg isn't precompiled) What is the right way to handle such a situation? Is there a way to compile images after uploading or should I store them somewhere else? 回答1: You must not use the filesystem on

Heroku PHP mcrypt not found

扶醉桌前 提交于 2020-01-03 04:37:05
问题 Yesterday, I was able to push without any problems, but today, my framework ( Laravel 4 ) detects that there are not anymore mcrypt on the heroku cedar app. Do you have information that could help me ? I tryed to add a php.ini at the root of my project with extension_dir = "/app/www/ext/" extension=mcrypt.so and I download this archive https://s3.amazonaws.com/heroku-buildpack-php-tyler/libmcrypt-2.5.8.tar.gz , took the libmcrypt.so.4.4.8 file, renammed it to mcrypt.so and put it in a ext

Link Custom CSS and Javascript to Rails After Deployment

半腔热情 提交于 2020-01-03 03:28:07
问题 I have a Rails App it's css and js links works fine locally since I have used : <link href="assets/bootstrap.css" rel="stylesheet"> <link href="assets/bootstrap-responsive.css" rel="stylesheet"> <link href="assets/font-awesome.css" rel="stylesheet"> <link href="assets/bootswatch.css" rel="stylesheet"> I Googled more than it should all I find is this Heroku Guide , I'm so confused about the assets pipeline thing! I ran this command as well : bundle exec rake assets:precompile and it did create

Deploying Vapor with heroku

允我心安 提交于 2020-01-03 02:49:29
问题 I have created a very simple app with one route in main.swift . It reads a city from a query string and use it to get the weather (through the yahoo API) of that city. this is the route: drop.get("whether") { request in guard let city = request.data["city"]?.string else { return try JSON(node: ["Error": "no city given"]) } return try drop.client.get("https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)

Facebook Messenger Extension Error: 2071010

断了今生、忘了曾经 提交于 2020-01-03 02:42:06
问题 I am developing a chatbot for messenger platform using nodejs deployed on heroku. I am trying to get the user id in the webview. I have set the messenger extension field to true, whitelisted my domain, using latest updated version android app and also since now webview support the web browser, I am also viewing it in safari browser. The messenger sdk is loading perfectly. I the check whether browser is supported or not which I get as result->true. Still I am facing problem getting the user id

do you use Heroku to write Ruby on Rails app?

て烟熏妆下的殇ゞ 提交于 2020-01-03 02:40:28
问题 do you use Heroku to write Ruby on Rails app? i read about from the book Learning Rails from O'Reilly, and then today found that http://heroku.com/myapps doesn't have a "Create App" on the page so that I can edit the code online any more. Do they only allow that for the paid user? It also seems that they only let you have one web request at one time if you are a non-paying customer. 回答1: Heroku has moved to a paid for platform (without the web-based editor). I guess you control it via

Rails 3, Heroku: Taps Server Error: PGError: ERROR: invalid byte sequence for encoding “UTF8”: 0xba

牧云@^-^@ 提交于 2020-01-03 02:40:10
问题 I have a Rails 3.0.9 application running both locally in my dev env and remotely on a heroku app. I have a method that imports a CSV file into a model, and this file can contain non-english characters, like °,á,é,í, etc (it's in spanish). I am currently able to import the complete file (75k records) without any problems in my local dev (SQLite) database ; but, when uploading the db to heroku with heroku db:push , it fails with the error I'm posting in the title : !!! Caught Server Exception

Getting Null Value vilates integrity error when registering user or trying to migrate

試著忘記壹切 提交于 2020-01-03 02:30:12
问题 Recently migrated database to RDS. Using django 2.0 Now when I try to register a user I get a: ProgrammingError at /accounts/register/ relation "auth_user" does not exist LINE 1: SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."userna... ^ If I try to manage.py migrate I get the following response: (boxtrucks-Dleh71wm) bash-3.2$ python manage.py migrate Operations to perform: Apply all migrations: accounts, admin, auth, contenttypes, saferdb, sessions Running migrations: Applying

Ratyrate stars not loading in production (heroku)

倖福魔咒の 提交于 2020-01-03 02:28:09
问题 So ive got ratyrate working in development just fine by adding <%= javascript_include_tag 'ratyrate.js', "data-turbolinks-track" => false %> to the body of my view. Prior to this the stars would only load when the url was directly accessed or the page refreshed. Now I am having the exact same issue (stars not loading when page is accessed through a link) when deploying my app on heroku! I hope that this is enough info (happy to provide more) and that someone has faced this before/has any

Ruby On Rails Heroku db:migrate Aborted!

主宰稳场 提交于 2020-01-03 02:26:10
问题 I've pushed my app to Heroku and now am trying to run '$ heroku rake db:migrate'. I get this error: PGError: ERROR: relation "inventories" does not exist : SELECT "inventories".* FROM "inventories" On my local machine everything works great. The local is using SQLite 3. Also, previous versions of the app worked just fine -- the previous versions did include the inventories model. Now, I've read ( almost ) every post on stackoverflow and on the web about this issue, but I still cannot find a