Unrated-Limited-Unlimited / ua-backend

4 stars 0 forks source link

Only test data in production #29

Closed Veggissss closed 6 months ago

Veggissss commented 6 months ago

When going to https://api.unrated.no/graphiql and quering:

query{
  getWhiskeys{id, title}
}

Only the test data/whiskeys shows up, which should not be in production. This might be because the environment variable for MICRONAUT_ENVIRONMENTS is not set to prod .

Adding this to restart.sh might solve it:

export MICRONAUT_ENVIRONMENTS=prod
Neelzee commented 6 months ago

Will look into, this is for prod? Can be fixed by adding it too the systemctl-service file