#
Self Hosting
We love to host things myself, to control it or to tweak it if nothing else atleast monitor it myself. Isn't it one of the benefits of OSS. So naturally we want our users to have that freedom. That is why here is the guide on how to do it properly.
#
Method 1: Directly running the server
- Clone the project
git clone https://github.com/Arpan-206/DevArmyKnife.git
- Go to the project directory
cd DevArmyKnife
- Install dependencies
yarn install
- Build for production and start the server.
yarn run build
yarn run start
- And, Voila!
#
Method 2: Using Docker
Info
This should be obvious but still, you would need Docker installed on your system for this.
#
Way 1: Pulling the image from DockerHub
- Pull the image from DockerHub.
docker pull arpanpandey/dev-army-knife
Run the image as a container.
As a background process
docker run --publish 8000:3000 -d arpanpandey/dev-army-knife:latest
With outputs in the terminal
docker run --publish 8000:3000 arpanpandey/dev-army-knife:latest
Voila! We are done.
#
Way 2: Building the Docker Image
- Cloning the repository and changing directory.
git clone https://github.com/Arpan-206/DevArmyKnife.git
cd DevArmyKnife
- Building the image.
docker build . --tag dev-army-knife
Run the image as a container.
As a background process
docker run --publish 8000:3000 -d dev-army-knife:latest
With outputs in the terminal
docker run --publish 8000:3000 dev-army-knife:latest
Voila! We are done.