Hacker News new | ask | show | jobs
by dugmartin 5988 days ago
Question for the peanut gallery: how do you handle user uploaded files that are not in version control if you swap out the whole site?

Create post-update, pre-swap symlinks from inside the new docroot to directories outside of the swapped docroot?

1 comments

Simply don't store user-created content (images) in a folder in your main site, that doesn't scale anyway. Put pictures in pic.mysite.com or something like that (you can map an S3 bucket to that if you like).