How to turn off S3 storage?

I believe this will do the trick:

./launcher enter app
rake uploads:migrate_from_s3
rake posts:rebake

This migrates uploads FROM S3 to your web server. Then you can go back to your app.yml and change DISCOURSE_USE_S3: false. Then rebuild.