Forem Creators and Builders 🌱

Cover image for Development: Self-hosting Forem on Digital Ocean Servers.

Development: Self-hosting Forem on Digital Ocean Servers.

Akhil Naidu on April 13, 2021

> Update: There is no requirement of Elasticsearch in the new Forem Enter fullscreen mode Exit fullscreen mode I...
Collapse
 
jdoss profile image
Joe Doss

Hey @akhil thanks for taking the time to write all of this up and your hard work on getting Forem installed on your DO account. We are actually in the process of finishing up a Forem Selfhost repo that will streamline a lot of this process for users on Digital Ocean, AWS and Google Compute. Be sure to keep an eye out on forem.dev for news about that.

Collapse
 
lee profile image
Lee

Can’t wait to see this @jdoss 🌞😀

Collapse
 
akhil profile image
Akhil Naidu

Yes, I'm with you.

Collapse
 
alvarolab profile image
Álvaro Hurtado Mochón

Really want to see this!
I have been trying for a while, so far painfully and unsuccessful!

Collapse
 
yanoe profile image
Yanoe?

@jdoss Hi, any update its 2023, I want to host Forem in digital ocean

Collapse
 
coffeecraftcode profile image
Christina Gorton

Looking through this now but also just wanted to say thank you for documenting this! I know it will be helpful for a lot of people and I really appreciate you taking the time to put in to words all the things you have been learning while working to set up Forem for yourself.

Collapse
 
akhil profile image
Akhil Naidu

I hope one day, I will be able to write detailed documentation of Forem from development -> production to the majority of its users (personal -> enterprise)

I'm not good with web development, especially with ruby on rails. So by documenting, I can be a part of this community :)

Collapse
 
coffeecraftcode profile image
Christina Gorton

Definitely. Documentation is vital and super helpful! It is definitely a great contribution to this community.

 
coffeecraftcode profile image
Christina Gorton

@navjotbabrah Thanks for adding more context here. If you would like to see what Forem looks like locally you can use the forem/forem repo. Forem is the software that powers all of the forems and what the self-host repo uses as well. If you want to deploy your own Forem we suggest using the forem/selfhost repo :) Let me know if you have any questions.

Collapse
 
coffeecraftcode profile image
Christina Gorton

Hey @navjotbabrah The self-host repo is github.com/forem/selfhost.git.

Akhil has done a wonderful job setting up their Forem and creating some guides on how they did it.

If you are looking to get support from the Forem team in the future please follow the steps in the self-host repo github.com/forem/selfhost or in these official guides.
forem.dev/foremteam/self-host-quic...

You can also feel free to follow Akhil's guides as well. We at Forem just can't offer support for that set up if you run in to problems in the future. However the community here may be able to answer your questions.
Thanks!

Collapse
 
ngtrian profile image
Tri Ân

Is it possible to run forem production with apache instead of nginx

Collapse
 
akhil profile image
Akhil Naidu

Think of it like this. Forem service will be open on port 3000. DNS providers don't accept random ports(most of them only prefer 80 and 443, which is plain IP).

So, any service that port forward the service port 3000 to 80 is fine.

Collapse
 
ngtrian profile image
Tri Ân

I have set up a ProxyPass on 127.0.0.1:3000/, and the website runs successfully, but when I close the terminal window, the website also stops.
Is there a way forem to still run even when I close the terminal window

Thread Thread
 
akhil profile image
Akhil Naidu

Use tmux

Collapse
 
ngtrian profile image
Tri Ân • Edited

Overmind has handled tmux for you by running as a daemon, here's the command line to launch the application instead of using bin/startup:
overmind s -D -f Procfile.dev

Collapse
 
akhil profile image
Akhil Naidu

If you have any doubts, let me know in the comment section.

Collapse
 
wassim_elbhm profile image
WASSIM EL BOUHAMIDI

Hey! how I can contact you, bro? I have a lot of question.

Collapse
 
akhil profile image
Akhil Naidu

My Facebook

If you are not a fb user, you can mail me: admin@leewardslope.com

If you are not good with emails, suggest me your prefered social media platforms.

Collapse
 
ce7in profile image
Muhammed Cetin

I've sent a friendship request on Facebook and LinkedIn. When you have a free time, I want to discuss about installation of Forem on Heroku. I couldn't install it, heroku throw some errors.

Collapse
 
ioscasey profile image
Casey 💎

Great stuff!

Collapse
 
flarumtr_44 profile image
flarumtr

I am really curious about the contents of the nginx.conf file. I will be grateful if you share the nginx.conf file of the DO instance.

Collapse
 
akhil profile image
Akhil Naidu

There are lot of other nginx configurations within my file, so I cant directly share it.

I can guide you though.