I have already configured s3 according to this guide:
what should i do if i want discourse assets to still serve locally?
@hosna has configured S3 according to the guide, but wants Discourse assets to serve locally. @Don points out the contradiction in the topic title and content, and provides a configuration to store static assets in Object Storage. However, @hosna clarifies that they want assets to be served locally. The issue is that when after_assets_precompile is enabled, the rebuild hangs on rake s3:upload_assets, and when it’s disabled, the forum doesn’t show up due to missing assets on S3. @pfaffman suggests that setting DISCOURSE_USE_S3 to false might solve the problem, as it would prevent assets from being pushed to S3.
I have already configured s3 according to this guide:
what should i do if i want discourse assets to still serve locally?
Hello
The title and content of the topic are a bit contradictory but I assume you want to store assets on Object Storage. ![]()
Sorry about that. You are right. I just edited the post. I want assets to be served locally
my problem is that when I enable after_assets_precompile the rebuild hangs In rake s3:upload_assets line for one hour, so I terminated the process. and also when I disable after_assets_precompile, my forum wont show up due to not finding assets on s3.
I believe that is the problem you want to solve. It’s a good bet that this is a symptom of your problem, not the problem itself.
I think if you set DISCOURSE_USE_S3 to false (or maybe just don’t include it), it won’t push the assets to s3.