engineyard

Autotest notifications on Ubuntu virtual environment

Deadly 提交于 2019-12-12 00:37:13
问题 I am having trouble getting Rails autotest notifications to work on the Engine Yard Vagrant environment. On the Mac, I normally get the notifications via Growl. However, on the virtual environment (which runs Ubuntu) that doesn't work. I tried running Linux notification setups such as libnotify+autotest-notification, but I get the following error: libnotify-Message: Unable to get session bus: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization

SQLite3::NotADatabaseException (file is encrypted or is not a database) in production (Engineyard)

一笑奈何 提交于 2019-12-11 16:28:15
问题 I am trying to parse a sqlite3 database in rails 3 (using sqlite3-ruby gem). The database to parse is coming from a file upload. Here is my controller code: require 'fileutils' require 'sqlite3' tmp = params[:file_upload][:my_file] file = params[:file_upload][:my_file].tempfile filename = params[:file_upload][:my_file].original_filename file = File.join("public", params[:file_upload][:my_file].original_filename) FileUtils.cp tmp.path, filename db = SQLite3::Database.new(filename) So it works

Setting environment variables in engineyard

社会主义新天地 提交于 2019-12-04 07:29:19
I know from heroku that it’s possible to add environment variables by running heroku config:add MY_ENV_VAR=123 locally. How can I achieve the same thing with engineyard? We ran into the same issue and asked EngineYard for some assistance. Jim Neath from EY came back with the following response: Unfortunately, passenger does not get passed environment variables from the system. What you need to do is create a ruby wrapper that defines your environment variables and launch passenger using this, as described here: http://blog.phusion.nl/2008/12/16/passing-environment-variables-to-ruby-from

Heroku vs EngineYard: which one is more worth the money? [closed]

瘦欲@ 提交于 2019-12-04 07:25:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I looked this up on Google, but wanted more opinions before I committed to either service. Has anyone had experience with either (or maybe both) services? Are there any advantages or disadvantages that stood out about either one? Particular areas of interest are: Security Stability Scalability. Price 回答1: I am

Heroku vs EngineYard: which one is more worth the money? [closed]

岁酱吖の 提交于 2019-12-02 15:42:42
I looked this up on Google, but wanted more opinions before I committed to either service. Has anyone had experience with either (or maybe both) services? Are there any advantages or disadvantages that stood out about either one? Particular areas of interest are: Security Stability Scalability. Price I am presuming that you are talking about Engine Yard's EC2 hosting, rather than their full-service stack? I am working with Heroku, and love it. On price, Heroku is the clear winner for me. Bandwidth costs are abstracted by Heroku, which is a big win. On the security fronts, it's a bit hard to

Image corruption on upload to s3, production only. (carrierwave, engineyard)

落爺英雄遲暮 提交于 2019-12-01 18:29:18
I am using carrierwave to upload images to amazon s3. This works great on development, but not when I push it to my server (engineyard cloud trial). The process works fine, no errors are thrown, and a link is given back. However, the actual image is corrupted, somehow. Here's one, for example: https://s3.amazonaws.com/ZenBucket/uploads/goal/photo/30/guinness-toucan.jpg Can anyone tell me how it's being corrupted, or what could be doing it? Edit: The first image upload attempt after deploying always seems to fail 500, but the error doesn't show in the log. Not sure if that's relevent. Edit2:

User-friendly error pages not displaying in production environment

时光毁灭记忆、已成空白 提交于 2019-12-01 04:59:55
问题 Recently my user friendly error pages stopped displaying for my production environment. I am using rails 3.0.3. I have the following in my config/environments/production.rb : config.action_controller.consider_all_requests_local = false When I start my web server locally using the production environment, the user-friendly error pages display properly. Has anyone else experienced this? 回答1: I found a fix for this thanks to Scott at EngineYard I put this at the beginning of my config

Solr with Rails - rake sunspot:reindex is not working

旧时模样 提交于 2019-11-29 09:35:13
I am stuck into a strange issue where I am looking for your inputs. My problem is: After deploying my application on Production using Capistrano, when I am doing solr re-indexing, it is giving me below error: $ bundle exec rake sunspot:reindex --trace ** Invoke sunspot:reindex (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute sunspot:reindex Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile rake aborted! RSolr::Error::Http - 404 Not Found Error: Not Found Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete>query