heroku

Entity Framework 6 - Npgsql - connection string error

邮差的信 提交于 2020-01-03 01:41:13
问题 A tricky (and frustrating problem) - perhaps you folks may be clever enough to solve it: Problem I want to be able to read/write to my database using Entity Frameworks. I have got a simple app rails running on Heroku (straightforward scaffold). I want to connect to this database and manipulate records. The good news is that I can successfully connect to that database using npgsql. The bad news is that I cannot do it with Entity Frameworks. This is the error I’m receiving: System.Data.Entity

Heroku - keeping a dyno alive (May 2013)

最后都变了- 提交于 2020-01-02 23:03:11
问题 Until now I used for this task the service called Pingdom, but yesterday I tried to sign up for a new application, but there is not the free plan anymore? Anyway, I took a look for an alternative and I found New Relic could do this as well, but there is (in my eyes) one issue - we can set up an URL which we would like to ping, but this URL is pinged periodically each 30 seconds (and each 15 seconds if was detected an error). Cannot this approach "overload" my app? There is also a way to set

Heroku Login failed using Windows CLI

▼魔方 西西 提交于 2020-01-02 22:04:32
问题 I had downloaded and installed heroku-toolbelt for my Window PC. I wanted an application to be deployed to heroku , but My login fails Please help me to solve this problem The error messages are written below. C:\Users\shree1>heroku login DL is deprecated, please use Fiddle Enter your Heroku credentials. Email: xxxx@xxx.com Password (typing will be hidden): C:/Ruby200-x64/lib/ruby/2.0.0/Win32API.rb n `initialize': No such file or directory (LoadError) from C:/Ruby200-x64/lib/ruby/2.0.0

Heroku Deploy Error: Cannot get Node App running after Deploy : Cannot find module '/app/web.js'

我只是一个虾纸丫 提交于 2020-01-02 15:15:20
问题 I have a node.js app using Express and MongoDB (mongoose). It runs perfectly fine locally. I deployed it to heroku seemingly without a problem, but when I try to actually launch the app it crashes. The heroku log says this: Error: Cannot find module '/app/web.js' I am new to this, so any help would be greatly appreciated. Thanks! App will help my Type 1 Diabetic daughter. package.json: { "name": "projectglu", "version": "0.0.0", "dependencies": { "express": "~3.4.3", "lodash": "~2.4.1",

Dashing does not run on Heroku

梦想的初衷 提交于 2020-01-02 09:38:21
问题 I'm trying to deploy Dashing to Heroku. Everthing runs perfectly on localhost. Deploying with the instructions provided by the github page It seems to be something to be with the backports gem. Below are the heroku log files 2014-11-26T21:12:22.141799+00:00 heroku[web.1]: State changed from crashed to starting 2014-11-26T21:12:32.932667+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 23294` 2014-11-26T21:12:40.618062+00:00 app[web.1]:

Heroku + Rack-Rewrite

一笑奈何 提交于 2020-01-02 08:44:11
问题 Still can't get this working...Rails 3.1.3, Ruby 1.9.2 on Heroku's Cedar Stack. Trying to use https://github.com/jtrupiano/rack-rewrite to make http://domain 301 redirect to http://www.domain to no luck (app works, but no redirects happen at all). /config/initializers/rack_rewrite.rb (MyAppName is actually the correct name, domain.com is actual domain): MyAppName::Application.config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do r301 %r{.*}, 'http://www.domain.com$&', :if => Proc.new

How to install ffi on Heroku

让人想犯罪 __ 提交于 2020-01-02 08:33:43
问题 This started today with our Heroku deployments. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /tmp/build_6e4275c6-8442-4a39-9175-f20505baf383/vendor/ruby-2.0.0/bin/ruby extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include,/usr/include/ffi... no checking for rb_thread_blocking_region()... yes checking for rb_thread_call_with_gvl()... yes checking for rb_thread_call_without_gvl()... yes checking for ffi_prep_cif_var()... no creating

How to install ffi on Heroku

孤者浪人 提交于 2020-01-02 08:32:13
问题 This started today with our Heroku deployments. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /tmp/build_6e4275c6-8442-4a39-9175-f20505baf383/vendor/ruby-2.0.0/bin/ruby extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include,/usr/include/ffi... no checking for rb_thread_blocking_region()... yes checking for rb_thread_call_with_gvl()... yes checking for rb_thread_call_without_gvl()... yes checking for ffi_prep_cif_var()... no creating

Why do I get ActionView::Template::Error: undefined method `name' for nil:NilClass on Heroku but not locally

痴心易碎 提交于 2020-01-02 08:25:10
问题 I have a Rails 4 app running SQLite locally and PostgreSQL on Heroku. I am having problems with the index action of my PostController. I get the above error, but only on Heroku. I have double checked all the code and run all migrations and restarted the Heroku server. I have also double checked that the migrations are identical both locally and on Heroku. The issue seems to be specifically related to accessing data in the User model through the Post model. For instance, I've tried to access

Rails 4 link_to larger, static image

两盒软妹~` 提交于 2020-01-02 08:14:31
问题 My files are stored in app/assets/images/subdirectory/image.png and app/assets/images/subdirectory/image_full.png . In my app/views/home.html.erb : <%= link_to (image_tag("subdirectory/image.png"), asset_path("subdirectory/image_full.png")) %> I've also tried: <%= link_to (image_tag("subdirectory/image.png"), asset_path("subdirectory/image_full.png", image)) %> <%= link_to (image_tag("subdirectory/image.png"), image_path("subdirectory/image.png", image)) %> Couldn't find much via the docs: