Forem Creators and Builders 🌱

Discussion on: Step by Step tutorial on how to install Forem

Collapse
 
dhanabal profile image
Dhanabal

My error

Collapse
 
akhil profile image
Akhil Naidu

I updated the post with post-installation instructions. Check it to resolve your issues.

Collapse
 
dhanabal profile image
Dhanabal

Really thanks

Thread Thread
 
dhanabal profile image
Dhanabal

Is there any ways to host images in digital ocean

Thread Thread
 
akhil profile image
Akhil Naidu

Configuring s3 will make a lot of things easy.

  1. It helps hosting images
  2. Dokku's postgress backup is attached with s3(you can also do this manually)
  3. s3 has free tier of 1 year and very cheap image hosting plans. (Digital Ocean has competitive pricing too)

Presently(This might change in later date) => Forem is using s3_direct_upload ruby gem. So effectively you can also configure any object storage using it. (even digital ocean storage, but I never tested it)

Thread Thread
 
akhil profile image
Akhil Naidu

For you to effectively do this, all you have to do is => while configuring your s3 ENV variables, rather than using s3 credentials, you can use Digital Ocean Object storage credentials.

Thread Thread
 
dhanabal profile image
Dhanabal

Is need to set AWS_ID to digital ocean key
AWS_SECRET = digitalocean api secret key

Is correct?

Thread Thread
 
akhil profile image
Akhil Naidu

You need to configure all these ENV variables.
AWS_ID=
AWS_SECRET=
AWS_BUCKET_NAME=
AWS_UPLOAD_REGION=

And for those values you need to create a space in digital ocean, not just your VPS. Use this like to know more about spaces.

Also, first try to understand a bit more about Forem, rather than focusing just on making it live. If you want to self-host Forem, knowing about is important. Or else you can wait for a while and launch your Forem using Forem-Cloud(I'm expecting that Forem might release a premium hosting plan of their own)

Thread Thread
 
dhanabal profile image
Dhanabal

Yes i correctly set all env. Now i upload images i have error "Unexpected token < in JSON at position 0"

Thread Thread
 
dhanabal profile image
Dhanabal

Aws id to do api id
Aws secret to do api secret key
Aws bucket name to do bucket name
Aws upload region which one is need to update
Nyc3 or nyc3.digitaloceanspaces.com

Thread Thread
 
akhil profile image
Akhil Naidu

restart your application => you can use dokku ps:restart nforem
Once try to use different image(may be with JPEG/JPG extension)