Skip to content

Live server using 'all_ok' oauth module

Craig M. Stimmel edited this page Feb 26, 2021 · 1 revision

Set Up

These instructions will get you set up to run a live spotseeker server against scout and/or scout-manager using the 'all_ok' auth module (Note: this should only be used for testing purposes, never production).

Prerequisites

Make sure that you have a .env file set up. If not, copy the sample.env file into your own .env file (applies to spotseeker server, scout, and scout-manager):

cp sample.env .env

For each repository, you'll need to choose a different PORT for each service to run on.

Spotseeker Server

Configure all_ok

In your .env file, make sure that AUTH_MODULE is set to 'all_ok' (or commented out):

AUTH_MODULE=all_ok

Running with Scout or Scout Manager

To run against Live Spotseeker Server that is using the 'all_ok' AUTH_MODULE, uncomment and edit the following lines in your .env files:

RESTCLIENTS_SPOTSEEKER_HOST=http://localhost:<Spotseeker Server PORT>
RESTCLIENTS_SPOTSEEKER_DAO_CLASS=Live

Make sure that the RESTCLIENTS_SPOTSEEKER_HOST matches the url to your running spotseeker server.