0

I have production and staging environment that use the same file system (Amazon S3). I need to change the user profile picture saving path of my staging environment to local file system and other files to be saved in S3.

Is that possible?

  • Why bother? S3 has unlimited space. – No Sssweat Jul 4 '18 at 22:56
  • yes we can, i have cloned the production environment to staging with different database. Hence any changes related to profile picture in staging will affect production right? – Prasanth R Jul 5 '18 at 4:58
  • simply wrong, you push from staging to production code & configuration changes only. The image reference is saved in the database and is not part of the configuration system. – No Sssweat Jul 5 '18 at 5:03
  • 1
    @rovr138 How many profile pics is he going to be uploading in the test area? I like to KISS it. – No Sssweat Jul 5 '18 at 6:11
  • 1
    @rovr138 fair point, but OPer never answered my Why bother? question. Maybe if there is a ton of images might be worth doing something about it. Another simple solution would be to clone the S3 bucket and use that newly cloned bucket for the staging site. – No Sssweat Jul 5 '18 at 6:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.