MacOS

If you notice any mistakes that need to be corrected, please reach out on Discord!

MongoDB

Petio supports two ways of connecting to a Mongo Database instance, locally or remote. We recommend the locally hosted MongoDB option.

MongoDB Locally

We assume you've installed homebrew in order to follow this guide.

  • Add the Official MongoDB Repo to homebrew:

brew tap mongodb/brew
  • Install MongoDB:

brew install [email protected]
  • Start MongoDB as a service:

brew services start mongodb-community

MongoDB Locally - On A Different Host

  • Please review the Linux guides and make changes as necessary for your situation.

MongoDB Remotely

  • Register for Atlas here.

  • Create a free cluster.

  • Change the provider or region if you need to. It may take some time to create the cluster.

  • After the cluster is made, click on connect and select MongoDB Compass and follow the instructions on screen.

Petio as a Service

  • First make a directory for Petio:

  • Download the latest version of Petio:

  • Extract Petio to the directory we just made:

  • Change the permissions so that Petio can work as expected:

  • To have Petio running in the background without user input, we will use launchctl.

    • To more-or-less control launchddefine a service for Petio like shown below and save it as tv.petio.plist in the ~/Library/LaunchAgents/ folder.

  • Load the service using:

  • Start the service using:

  • Verify that Petio is indeed running:

  • To stop Petio, run:

Once you've completed theses steps, you can navigate to http://<hostname>:7777 to start configuring Petio.

Updating Petio

  • Stop the Petio service with launchctl.

  • Navigate to the directory you have Petio installed in, then, download the latest version from the Downloads page with:

  • Extract the contents of freshly downloaded archive while overwriting the current contents of the current directory with:

  • Lastly, start the Petio service back up again with launchctl.

Last updated