Hi,
How would i rewrite this rails query to run on Heroku (Portegres)
@students = Student.find(:all,
:conditions =>["(concat(first_name, ' ', last_name) LIKE ?) OR
(concat(first_name, ' ', middle_names, ' ', last_name) LIKE ?)",
"%#{params[:search]}%"...
I need to upload files and then parse them using paperclip?
Currently it is uploaded in the /system folder, which isn't allowed in heroku.
I don't need the uploads to be persistent...I parse it and then store them.
So I'd like to be able to save into /tmp and then parse, and then let it get blown away later.
Thoughts on how to do thi...
I am using Heroku for my production environment so I need to load the paperclip files into different directories.
For development I want it to continue in the current /system default, and in production I want to pass the :path variable to a /tmp directory per Heroku.
How do I do this? Am guessing maybe set something in the environment...
I am trying to do a
$heroku db:push
this is the error I get
C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138:in `union': can't convert Array into
String (TypeError)
from C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:138
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in ...
I have a Request model, which has a requesteeID field. When I'm running the site on my local computer, I can run this line of code:
a = Request.find_all_by_requesteeID(current_user.id)
and it works fine (note: I can't do current_user.requests because the models are joined by another field, requesterID). But when I run it on Heroku, it...
I deployed an app that uses ActiveRecord to Heroku, and I got an internal server error. It works fine on my local machine (where the database is SQLite). Below is the log message for the error. The newsletters table is just a table with no associations. It's got just one field for email addresses. I don't know PostgreSQL, and I'm not sur...
I want my Sinatra app to allow users to create an account and access it via a subdomain (i.e. your-account.myapp.com).
I found this to extract subdomains (http://gist.github.com/55784#file_subdomains.rb) but I'm having a hard time implementing it.
Any ideas?
I have an Account model (datamapper) with a field called account name, whic...
I'm running a Rails app on Heroku, and I'm trying to port over all inline Twitter requests (namely oauth authentication) to a Node.js app, because when Twitter is slow, since the Ruby server is blocking, the Twitter requests clog up my app. (My average request takes about 50ms, but my average Twitter Oauth request takes about 1500ms!)
T...
I have a Rails application hosted on Heroku that requires a weekly data import. The task is performed by administrators and takes about 1-2 minutes to run (compute time). On Heroku, jobs that require more than 30 seconds time out. Heroku recommends job queues - however paying $36.00 per month (price of one worker) for 8 minutes of comput...
I want to upload my app to github so I can share portions of it for feedback and help...but it contains information used for logging into other services and so forth.
How do I upload it into github without making it difficult to continue to use that repository for deploying into heroku?
...
I have a Ruby on Rails application that I am trying to host on Heroku. I would also like to use a GitHub public (free) repository to track changes. I need to check-in a file containing passwords to the Heroku remote repo, but ignore the file so I don't check it in to GitHub. Is there a way I can add the file to one repo, and ignore it fr...
Hi folks,
I wanted to have a detailed look into my production.log, but heroku doesn't seem to store them.
Does anyone else, have a solution for that problem.
It would be nice to get it stored safely away.
thanks in advance :)
...
I wanted to add user search auto-complete (like Facebook's) to my Rails app on Heroku, and I chose to write it in Node.js because of the concurrency requirements. The search first pulls a user's friend list (of id's, which include all twitter friends, not just their friends on our site) from Mongo, then searches for users in that list, t...
Hi, I am trying to deploy one ROR app on Heroku.
As I typed "git push heroku master", I got this :
-----> Heroku receiving push
-----> Rails app detected
-----> WARNING: Detected Rails is not declared in either .gems or Gemfile
Scheduling the install of Rails 2.3.8.
See http://docs.heroku.com/gems for details o...
== AddIpToTutorials: migrating ===============================================
-- add_column(:tutorials, :ip_address, :string)
-> 0.0022s
== AddIpToTutorials: migrated (0.0022s) ======================================
>> t = Tutorial.new
..
>> t.ip_address
NoMethodError: undefined method `ip_address' for #<Tutorial:0x2b3b35f5a690>
...
I use currently use Heroku for rails hosting which uses a Git repository for deployment. I also have a hosted Git repository that I use as my main source control for history/backup purposes. I would like to have 1 local folder that has my working copy of my application, then be able to commit my changes to either the Heroku repository,...
Reading this article on nginx website, I'm interested in using X-Accel-Redirect header in the way that Apache or Lighttpd users might use the X-Sendfile header to help with the serving of large files.
Most tutorials I've found require you to modify the nginx config file.
Can I modify the nginx config file on Heroku and if so, how?
...
I am trying to get a Ruby on Rails app hosted free somewhere, and Heroku is looking like my last resource. It is supposed to work on Linux, and the gem installs with no errors, but whenever I run any Heroku command it spits out several errors, all connected, and talking about a failed 'require.' I looked it up in the code, and it says: ...
Is it possible to use cassandra with heroku?
...
I created two applications that were essentially identical on heroku. They started off different because I was testing uploading to heroku and having some challenges making the adjustments.
But now things seem to be working, but both have data that I would like to consolidate. Since they run off the same git repository, the code is th...