Save 36% for Black Friday! Learn more

Cristian Georgescu

Joined

4,980 Experience
42 Lessons Completed
1 Question Solved

Activity

When running migration:

ArgumentError: You tried to define an enum named "industry" on the model "Company", but this will generate a instance method "horeca?", which is already defined by another enum.  


Posted in How do I configure paperclip with capistrano?

It works.

After checking the logs found out that a call to imagemagik was the culprit.
Works don't work by default.
There where 2 issues: rails12_factor gem was installed and it's no longer needed on Rails 5
Also the following ENV vars need to be set in order to get the logs inside the current/logs

RAILS_SERVE_STATIC_FILES and RAILS_LOG_TO_STDOUT ENV need to be true.

Posted in How do I configure paperclip with capistrano?

Still not working. I don't want to salvage old images.
I want to upload new ones once I create a registration.

Is there a way to check the logs to see what is happening ?

Posted in How do I configure paperclip with capistrano?

Thank you for your reply Olvier.
I added the line to deploy.rb and also I checked the server.
public/system is present in current folder, in shared and also on releases but the issue persists.
Do I need to create the also the folder for :class and :partition inside the public/system?
Can it be a folder permissions issue ?

Thank you,
Cristian

Posted in How do I configure paperclip with capistrano?

Hi,

I deployed using the "Deploy Ruby on Rails" guide.
However I paperclip attachments no longer work in production. Got the below error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Any suggestions ?

Thanks.
PS:
Also I don't know where exactly I can check the logs. current/log/production is empty

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.