heroku

Heroku with rails 5 error Gem::LoadError: Specified 'postgresql' for database adapter

牧云@^-^@ 提交于 2020-02-10 04:26:25
问题 I am a Rails beginner and i see some issue while deploying to Heroku. Earlier i used SQLite3, later when i understood that i needed postgresql i installed the same and work on local machine. One deployment went fine after migrating from sqlite to postgresql. Now i see some issue. Heroku logs, Gem file and Database.yml details are as below. Can some one help me in this please. Advance Thanks...!!! Part of Gem file: group :development, :test do gem 'pg', '~> 1.0.0' gem 'rails_12factor' #gem

Local postrges works, but can't seem to push to RAILS_ENV=production heroku

白昼怎懂夜的黑 提交于 2020-02-08 05:10:12
问题 I have my app working just fine on my local environment at localhost:3000. It is pulling data from my local postgres db, however I don't appear to be updating the production environment. My welcome page is viewable on my https://gcl.herokuapp.com page, but when I click the nav link to view another page I get an error, I'm assuming because that page calls on data from the db, which it cannot find. I'm doing $ rails db:migrate RAILS_ENV=production I get the following output in Terminal: (0.2ms)

Precompilation breaking on heroku, works locally

痞子三分冷 提交于 2020-02-07 05:44:07
问题 I did some restructuring of our less files. Everything works locally (e.g. rake assets:precompile ), but on Heroku my push fails with the following: Running: rake assets:precompile adding placeholder rake aborted! Less::ParseError: variable @brand-primary is undefined (in /tmp/build_24298d78-579f-44a3-ae43-c4d82b9dde9d/app/assets/stylesheets/lectures/lectures.less) at /tmp/build_24298d78-579f-44a3-ae43-c4d82b9dde9d/vendor/bundle/ruby/2.1.0/gems/less-2.5.1/lib/less/js/lib/less/parser.js:604:31

Heroku/Flask deployment failing, either 'can't find attribute app' or 'can't find module name (flask_module)', proc file to blame?

一曲冷凌霜 提交于 2020-02-07 02:01:31
问题 I'm trying to deploy a Flask application to heroku and I'm suspicious that perhaps the Procfile is to blame. I'm not sure if I wrote it correctly, and liike many other stackoverflow users I had a hard time finding documentation to clarify what the syntax of the Procfile is supposed to be. I'm using gunicorn just cuz tutorials seemed to recommend it. First off, a screen cap of my file tree for this Flask app... Correct me if I'm wrong, but I believe that my flask app module should be named

Rails with React app on Heroku routes don't work on refresh

狂风中的少年 提交于 2020-02-06 10:01:44
问题 I have been trying to build a Rails API with an integrated React front end and deploy it to Heroku. I am using create-react-app to build the React app in a directory called "client" within the Rails project folder. I run the Rails api on localhost:3001 and the React app on localhost:3000. And it works when I deploy it to Heroku except when I am using a React Router url and try to refresh the page, or if I try to copy and paste the URL in the browser. It's the same result on multiple browsers.

Application error after succeeded Heroku Build (Node + React App)

喜夏-厌秋 提交于 2020-02-06 10:00:38
问题 I created an React app (using CRA) with Nodejs backend. Now I tried hosting it. (I've hosted few apps with same stack but didn't faced any issues). I'm starting both Nodejs and React app using concurrently module with npm run dev . But this time I'm getting an error and I can't figure out why. This is what I get when I go the link. Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. index.js

Application error after succeeded Heroku Build (Node + React App)

两盒软妹~` 提交于 2020-02-06 09:59:25
问题 I created an React app (using CRA) with Nodejs backend. Now I tried hosting it. (I've hosted few apps with same stack but didn't faced any issues). I'm starting both Nodejs and React app using concurrently module with npm run dev . But this time I'm getting an error and I can't figure out why. This is what I get when I go the link. Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. index.js

Rails help ActionView::Template::Error HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts

随声附和 提交于 2020-02-06 07:57:10
问题 My rails app runs fine on my locale machine with mysql. But on Heroku I get the following error: http://pastie.org/1697772 My kategoris_helper: module KategorisHelper def sortkat(column, title = nil) title ||= column.titleize css_class = column == sort_column ? "current #{sort_direction}" : nil direction = column == sort_column && sort_direction == "asc" ? "desc" : "asc" link_to title, {:sort => column, :direction => direction}, {:class => css_class} end end My Kategoris controller: class

Using gem Watir in Heroku - cannot find Chrome binary

泪湿孤枕 提交于 2020-02-06 07:27:04
问题 I am trying to scrap data in Heroku with the gem Watir but I have the following problem : Selenium::WebDriver::Error::UnknownError (unknown error: cannot find Chrome binary 2018-06-12T17:29:54.221948+00:00 app[web.1]: (Driver info: chromedriver=2.40.565383 I am using those 2 buildpackers : https://github.com/heroku/heroku-buildpack-google-chrome https://github.com/heroku/heroku-buildpack-chromedriver I don't understand how to fix the path in my rails project. As following this doc : https:/

When redeploying app on heroku PHP sessions disappear

末鹿安然 提交于 2020-02-06 06:51:06
问题 I have a Symfony app on Heroku which uses sessions (eg. to keep user logged in). I have configured memcachier (output of heroku addons command): Add-on Plan Price ───────────────────────────────── ──── ───── memcachier (memcachier-flat-XXXX) dev free I have also created file .user.ini in the root of my project with the following contents: session.save_handler=memcached memcached.sess_binary=1 session.save_path="PERSISTENT=myapp_session ${MEMCACHIER_SERVERS}" memcached.sess_sasl_username=$