SwiftarrConfigurator

struct SwiftarrConfigurator

Launching Swiftarr

Environment

Besides the standard .development, .production, and .testing, there’s a few custom environment values that can be set, either on the command line with --env <ENVIRONMENT> or with the VAPOR_ENV environment variable

Environment variables used by Swiftarr:

  • DATABASE_URL:
  • DATABASE_HOSTNAME:
  • DATABASE_PORT:
  • DATABASE_DB:
  • DATABASE_USER:
  • DATABASE_PASSWORD:

  • REDIS_URL:

  • REDIS_HOSTNAME:

  • PORT:

  • hostname:

  • ADMIN_PASSWORD:

  • RECOVERY_KEY:

  • SWIFTARR_USER_IMAGES: Root directory for storing user-uploaded images. These images are referenced by filename in the db.

  • SWIFTARR_EXTERNAL_URL: Externally-visible URL to get to the server. The server uses this to create URLs pointing to itself.