Skip to content

media3-0/otwartepanstwo

Repository files navigation

otwartepanstwo

env

Some keys are required for app to work properly:

POSTGRES_PASSWORD=... # password to be used for postgres DB
POSTGRES_USER=...     # user to be used for postgres DB
POSTGRES_DB=...       # name to be used for postgres DB

AUTH0_DOMAIN=...      # auth0 domain without "https://"
AUTH0_CLIENTID=...    # client id for auth0
AUTH0_REDIRECT=...    # redirect (callback) for auth0

MAILGUN_API_KEY=...   # api key for mailgun
MAILGUN_DOMAIN=...    # domain for mailgun

ADMIN_EMAILS=...      # list of emails that grants access to admin panel

For dev, this could be set in PROJECT_ROOT/.env, for production use it's preffered to export them in the shell.

dev setup

  1. yarn install
  2. yarn run build:dev or ./scripts/build.dev.sh

dev run

  1. yarn run start:dev or ./scripts/start.dev.sh
  2. open http://localhost:8080

crawlers

For development, list of active crawlers can be specified:

DEV_CRAWLERS="abw.js|cba.js" ./scripts/start.dev.sh

prod run

  1. setup docker + docker-compose on your prod machine
  2. run ./scripts/build.prod.sh
  3. run ./start.prod.sh
  4. after updates, please stop docker (./scripts/stop.prod.sh), and run again from step 2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published