/netbox-heroku

Netbox deployment using Heroku

Primary LanguagePython

Netbox Deployment on PaaS using Heroku

This repository represents a deployment of Netbox using a PaaS solution.

Netbox is an open source web application designed to help manage and document computer networks.

Setup

Setup a Heroku account, create a new app, and select the PostgreSQL and Redis add-ons

Clone this repo

$ git clone https://github.com/mtbutler07/netbox-heroku.git

Modify the .sample.env file and rename to it .env

$ mv .sample.env .env
$ vi .sample.env

Usage

Use the provided setup script to clone Netbox v2.6.2, extract/clean up directories, add optional dependencies, and move configuration/settings files to the proper directory, and generate the static files.

$ chmod +x ./setup.sh
$ ./setup.sh

Use the Python 3 package manager pip to install the requirements.

$ python3 -m pip install -r requirements.txt -U --user

Deploy to Heroku

$ git push heroku master

Credits

Initial inspiration for this PoC came from Sorah's repo.