Skip to content

Issue while booting up the application . #96

Closed Answered by leandrofars
praveen2211 asked this question in Q&A
Discussion options

You must be logged in to vote

You might use a .env.local from the directory you are running the controller. If you go to 'oktopus/backend/services/controller' you'll see there is a .env file, you can copy this file to a .env.local in the same folder and fill the 'SECRET_API_KEY' inside of it, and then from that folder you execute: 'go run cmd/oktopus/main.go -u root -P root -mongo "mongodb://127.0.0.1:27017" '. This SECRET_API_KEY variable is responsable for signed jwts, if you're running a local app you don't need this env variable, but it's nice to have in production.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@praveen2211
Comment options

@leandrofars
Comment options

Answer selected by leandrofars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants