heroku

no implicit conversion of Symbol into Integer when migrating in production

百般思念 提交于 2020-01-17 12:12:46
问题 So I'm working on an existing app and for some reason I was able to get it working and mirrored on my local environment however when I try migrating on heroku I get the below error, any ideas? Error: == 20141119113015 CreateReleasedInventoryStatus: migrating ==================== -- create_enum("eh_released_inventory_status", ["rejected", "pending", "allocated", "released", "transferred"]) rake aborted! StandardError: An error has occurred, this and all later migrations canceled: no implicit

no implicit conversion of Symbol into Integer when migrating in production

北城余情 提交于 2020-01-17 12:12:31
问题 So I'm working on an existing app and for some reason I was able to get it working and mirrored on my local environment however when I try migrating on heroku I get the below error, any ideas? Error: == 20141119113015 CreateReleasedInventoryStatus: migrating ==================== -- create_enum("eh_released_inventory_status", ["rejected", "pending", "allocated", "released", "transferred"]) rake aborted! StandardError: An error has occurred, this and all later migrations canceled: no implicit

dropdowns only trigger once

匆匆过客 提交于 2020-01-17 10:38:09
问题 I have two filter dropdowns on this site which will only trigger the first time I press them. According to my studies it seems that it has to do with turbolinks, which I've disabled by adding data-no-turbolink to the body tag like so: <body data-no-turbolink> ... </body> I've also tried adding this to all of the dropdown links and the link to open the dropdown. <a href="some-link" data-no-turbolink>...</a> It seems to work on development, but when I push to Heroku, it seems turbolinks are

get port number of stream server on client side [running on heroku]

喜欢而已 提交于 2020-01-17 08:54:40
问题 I am trying to deploy my dart application on heroku but even when i have got my stream server running in the dyno, i don't have any idea as to how can i get the port number on client side code to connect to the server via websocket. Since i cannot use Platform.environment['PORT'] , i don't know how to get the port. My client side websocket address is this: var port = '<The port number i need>'; var url = 'ws://0.0.0.0:$port/ws'; It has taken a lot of effort to deploy successfully to heroku.

Heroku + Rails Error ActiveRecord::StatementInvalid

流过昼夜 提交于 2020-01-17 07:43:11
问题 I'm having a bit of a dilemma here. I have a Comments scaffold and a Movies scaffold When going to a movie page and creating a new comment, i go here /movies/12/comments/new (12 being the id) And did is my controller def new @movie = Movie.find(params[:movie_id]) @comment = @movie.comments.new @search = Movie.search(params[:q]) respond_to do |format| format.html # new.html.erb format.json { render json: @comment } end end But when i launch to heroku I get this error *Processing by

Java JDBC Connection with Heroku

余生颓废 提交于 2020-01-17 06:07:28
问题 I'm trying to create a Java Web App on Heroku. When connecting the App to Heroku Database I encountered a Issue: org.postgresql.util.PSQLException: ERROR: relation "sc_user" does not exist The connection part is: URI dbUri = new URI(System.getenv("DATABASE_URL")); String dbUrl = "jdbc:postgresql://" + dbUri.getHost() + dbUri.getPath(); BasicDataSource connectionPool = new BasicDataSource(); if (dbUri.getUserInfo() != null) { connectionPool.setUsername(dbUri.getUserInfo().split(":")[0]);

Rails: Records are not ordered by id in heroku

删除回忆录丶 提交于 2020-01-17 05:12:52
问题 Im having a problem I developed my app in my local environment and everything works as espected, but after I deployed to heroku something is not working right. I have 2 models PurchasingGroup and GroupGoal a purchasing group has many group goals, well when I create group goals for a purchasing group I can check in the console like this PurchasingGroup.last.group_goals and the result is this one [#<GroupGoal id: 130, created_at: "2015-03-25 17:09:08", updated_at: "2015-03-25 17:10:37", other

Heroku PostrgreSQL client doesn't find relations

大城市里の小女人 提交于 2020-01-17 03:09:51
问题 I am using Heroku and his PostgreSQL addon. When I login to pg:psql and do: SELECT table_name FROM information_schema.tables WHERE table_schema='public'; I see all my tables: Users Cities Registrations Which is expected. But when I do: select * from users; Result is : ERROR: relation "users" does not exist LINE 1: select * from users; Does anyone knows what am I doing wrong? 回答1: Classic problem with mixed case identifiers. Try: select * from "Users"; Read the chapter Identifiers and Key

How to find a browser's command_executor string in Heroku

允我心安 提交于 2020-01-16 19:42:30
问题 I've run into the following problem while attempting to emulate a mobile browser with chrome on heroku: Selenium ERR_NAME_NOT_RESOLVED on heroku with mobile testing. Based on Josh Lewis's answer, and the python code sample at https://sites.google.com/a/chromium.org/chromedriver/mobile-emulation from selenium import webdriver mobile_emulation = { "deviceName": "Nexus 5" } chrome_options = webdriver.ChromeOptions() chrome_options.add_experimental_option("mobileEmulation", mobile_emulation)

Facebook Page Tab doesn't show my content

好久不见. 提交于 2020-01-16 19:25:11
问题 I'm trying to show some html in a facebook tab page without success.... I'm new in facebook applications and I do not understand what is happening. I've created a heroku app, to use your SSL, named https://sinatra-dev-test.herokuapp.com, this URL only shows a H1 with a "Teste" string. In my Sinatra Application I have a get route, and a post route that redirects to get. The heroku logs do not show nothing in particular, no one error or warning. Here is a screenshot to my facebook app config: