All Questions
Tagged with production-environment ruby
76
questions
0
votes
1
answer
121
views
Why Spring Preloader shouldn't be installed on the production environment?
I was reading through some of the articles on what spring is and why there is a need of application preloader, although it speeds up your development and can be a good usage on your development ...
0
votes
2
answers
426
views
How to access specific model in rails config/production.rb file?
I want to send exception mail to email_ids stored in yb_notifier_email_ids table. Previously, email_id was hardcoded in production.rb file. I want to send mail by using model. But as configurations ...
1
vote
0
answers
463
views
Spring gem loads in prodction enviroment
When I make rails console, it gives me this error
WARNING: Spring is running in production. To fix this make sure the spring gem is only present in `development` and `test` groups in your Gemfile ...
0
votes
1
answer
59
views
Rails default key provider error only on production
I am trying to run my rails project in production environment, I've already checked the .env file, tested on my development environment, but when goes to production environment I get that stack trace.
...
1
vote
2
answers
2k
views
Can not access production env rails app running local on localhost:3000
I can run my rails app fine in developemnt using:
rails s then going to localhost:3000
However, I need to test production and tried
rails s -e production, however, when I go to localhost:3000, I ...
1
vote
0
answers
52
views
Cocoon doenst work in Productionmode, but all the javascript seems to be loaded correctly
I programmed a small tool and deployed it on heroku, i added the cocoon gem afterwards for nested attributes and in my development environment locally everything works fine, but it seems like the ...
0
votes
1
answer
75
views
how to convert ManageIQ application development mode to production mode which will generate production log instead of development log
how to convert ManageIQ application development mode to production mode which will generate production log instead of a development log.
"ManageIQ production Environment"
0
votes
1
answer
106
views
Rails controllers in modules fail in production with ActionController::RoutingError (uninitialized constant Admin::
In our app we are using modules to organize some controllers. Here's what the directory structure looks like:
app/
controllers/
admin/
products/
reviews_controller.rb
orders/...
3
votes
1
answer
1k
views
Undefined method `simple_form_for'
I have created a ToDoList based off Hartl's tutorial, and following a guide to add a tagging system. I have followed till Section 10, where they asked me to modify my new.html.erb file to the code as ...
0
votes
1
answer
289
views
Ruby on rails : download route not working in production
I have a download function that works fine on my project, the process is to make a folder that contain two pdf files, zip it into the tmp folder and then download it, everything works fine on ...
0
votes
3
answers
2k
views
How can I see server logs in Ruby on Rails daemon way?
Now I am running a Ruby on Rails app in Daemon way on my EC2 instance(AWS)...
"bundle exec rails server -e production -d"
In this case, I am not sure how I can see the server logs.
Actually, there ...
0
votes
0
answers
130
views
nohup command working in localhost but not working in production mode rails
Getting error when calling from production rails console
ruby/2.3.0/bin/rake:22:in `<main>': undefined method `activate_bin_path' for Gem:Module (NoMethodError)
1
vote
1
answer
842
views
Rails 5, production mode, enum error "ArgumentError is not a valid"
My model:
class Job < ActiveRecord::Base
enum job_type: [:point, :mass]
end
My controller:
Job.new job_type: 'mass'
Error log:
ArgumentError 'mass' is not a valid job_type.
It happens in ...
0
votes
1
answer
912
views
Always run rake task when uploading to production
I am familiar with Rails but this is my first time uploading to production. I am able to successfully upload my app to AWS and deploy it. However, every time I do that, I have to ssh into my server ...
0
votes
1
answer
85
views
secret_key_base Error in Production Mode Ruby on Rails using HostGator
Error that I get :
App 1077 stderr: [ 2017-03-18 15:56:25.9166 1116/0x007f13c5aa39c8(Worker 1) utils.rb:87 ]: *** Exception RuntimeError in Rack application object (Missing `secret_key_base` for '...