Forem Creators and Builders 🌱

Discussion on: How does Amazons s3 work on Forem?

Collapse
 
varhal profile image
Varhal

Hi! I install Forem on digitalocean without t2d and i configure env variables in the .env file:

AWS_ID=
AWS_SECRET=
AWS_BUCKET_NAME=
AWS_UPLOAD_REGION=

Images uploading to amazon, but in frontend images links references to local images.

Thread Thread
 
akhil profile image
Akhil Naidu

If updated the ENV and restart the server.

  1. All the old images which were saved in local docker instance will be deleted
  2. But from now, any uploaded mages will be stored in s3 cloud
Thread Thread
 
varhal profile image
Varhal

If updated the ENV and restart the server.

After edit the ENV i restart server with this command:

'sudo systemctl restart forem.service
sudo systemctl restart forem-traefik.service'

Is this correct or I need another command to restart server?

Thread Thread
 
ellativity profile image
Ella (she/her/elle)

sudo systemctl restart should restart your Forem instance, and I believe that you can restart your server via your DO portal.

Did either of those work for you?

Thread Thread
 
varhal profile image
Varhal

I tried rebooting the server in different ways, the problem is not solved. When uploading an image to the site - it is uploaded to amazon, but is displayed locally on the site.

Thread Thread
 
ellativity profile image
Ella (she/her/elle)

That's right. We haven't changed this since I last spoke to you about it.

@jeremyf tells me that issue you're running into appears to live in this part of the code, so the next step would be for you to open a GitHub Discussion for it πŸ˜‰