FAQ Database Discussion Community


Does Rails 4.2 use secret_token?

ruby-on-rails,ruby-on-rails-4,engineyard
Are both secret_key_base and secret_token needed for production in Rails 4.2? Setting neither causes the following exception message: Missing secret_token and secret_key_base for 'production' environment, set these values in config/secrets.yml The 4.2 upgrade guide (http://railsapps.github.io/updating-rails.html) says this: When you create a new Rails application using the rails new command, a...

Engineyard Deployment: How to detect in deployhooks that its the first attempt to execute 'rake db:seed'

ruby-on-rails,deployment,hook,engineyard
I am having trouble to detect that this is the first attempt of deployment after a server instance is booted. I need to run the command rake db:seed only the first time to set the default users and other details in database. I have no idea if this is possible....

wkhtmltopdf Engine Yard

ruby-on-rails,linux,wkhtmltopdf,engineyard
I'm getting the following error: wkhtmltopdf_linux_x64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory How do I install the missing library on engineyard server?...

Custom headers are not working in Amazon EC2 server

ruby-on-rails,amazon-ec2,amazon-s3,engineyard,custom-headers
We are building an API and using Rest Console extension of Chrome for testing purpose. We have deployed our Application on Heroku server for debugging and on EC2 server as well. It is giving correct results on Heroku server with Custom headers. But for EC2 server, the custom headers are...