Skip to content

ajitsinghkaler/forem-selfhost-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Self Host forem

You need fedora core os for self hosting forem(software on which dev.to is built) what to do on other OS distributions.

You can install vagrant from this link

Put the vagrant file in the folder. In this folder we will setup everything we want to setup for self hosting forem.

Run

vagrant up

Edit the selfhost/inventory/forem/setup.yml file. Add forem domain name, default_email, forem_subdomain_name vault secret keys as given in the 6th point of forem selfhost repo

Now run

vagrant ssh
cd /vagrant

#  Generate a SSH key using the following command named and save it to ${HOME}/.ssh/forem.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

# generate one more normal key name id_rsa
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Use ls -lh ~/.ssh/forem* to ensure you have both a ${HOME}/.ssh/forem private key, and a corresponding ${HOME}/.ssh/forem.pub public key.

Follow the forth and fith steps in forem selfhost setup repo link

Now run ansible-playbook -i inventory/forem/setup.yml playbooks/providers/aws.yml

That is it this will deploy your forem to AWS cloud

About

Vagrant file for self hosting forem

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published