engineyard

Set Environment variables on Engine Yard

橙三吉。 提交于 2020-01-12 05:50:52
问题 My app is on Engine Yard services and I need to set the environment variables to work with my secret id and password. Somebody know how I can set each variables? What is the best way to do this? 回答1: I've just managed to set environment variables for my application running on Unicorn. Open /data/{app_name}/shared/config/env.custom and edit it to look like this: export SECRET_ID=yourid export SECRET_PASSWORD=yourpass Restart unicorn /engineyard/bin/app_{app_name} reload If you are using

Becoming Database Superuser - Engineyard

前提是你 提交于 2019-12-24 12:41:51
问题 I'm trying to add a database extension to one of my applications, specifically the fuzzystrmatch extension. Whenever I try to add it I get the following error -- execute("CREATE EXTENSION fuzzystrmatch") rake aborted! An error has occurred, this and all later migrations canceled: PGError: ERROR: permission denied to create extension "fuzzystrmatch" HINT: Must be superuser to create this extension. : CREATE EXTENSION fuzzystrmatch The only thing I've found about becoming a superuser is this:

How to Tell Engine Yard to Not Delete a File in the .gitignore

谁说我不能喝 提交于 2019-12-23 06:06:53
问题 To give you some context, I'm trying to use Figaro to safely add in environment variables without having to worry about security risks. The problem is is that I can't seem to get Engine Yard to play nice with production. I went and did a touch application.yml and then vim application.yml , i , and then command + v to insert that api keys and what not. I know the ENV['VARIABLES'] work because of development and all my rspec and cucumber tests (which utilize the APIs), passed. When I've got

Setting environment variables in engineyard

扶醉桌前 提交于 2019-12-21 12:29:45
问题 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? 回答1: 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

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

帅比萌擦擦* 提交于 2019-12-19 19:51:56
问题 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

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

橙三吉。 提交于 2019-12-19 19:51:01
问题 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

Solr with Rails - rake sunspot:reindex is not working

谁都会走 提交于 2019-12-18 05:44:34
问题 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 -

Solr with Rails - rake sunspot:reindex is not working

丶灬走出姿态 提交于 2019-12-18 05:44:17
问题 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 -

Engineyard command line: ey web restart not working

筅森魡賤 提交于 2019-12-13 05:52:27
问题 I recently installed the engineyard gem. When I try to run 'ey web restart', I get the following error: /home/jplato/.rvm/gems/ruby-2.2.0/gems/engineyard-3.1.2/lib/engineyard/thor.rb:32: warning: circular argument reference - serverside_version Loading application data from Engine Yard Cloud... Restarting servers on jplato / my_app / Rails4 Value for 'serverside_version' must be non-empty. Tried setting the environment variable ENGINEYARD_SERVERSIDE_VERSION=2.2.0, to match the serverside

Deploy Gollum wiki with Engine Yard

半城伤御伤魂 提交于 2019-12-13 04:26:00
问题 Gollum is "A simple, Git-powered wiki with a sweet API and local frontend." It's hosted on GitHub: http://github.com/github/gollum Deploying my site to EngineYard is generating this error. Fetching gem metadata from https://rubygems.org/ Installing charlock_holmes (0.6.9.4) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. It seems to be an issue with installing an dependency called 'ICU'. I've installed ICU using the 'install unix package' button on the