Skip to content

Instantly share code, notes, and snippets.

@j-greig
Created July 26, 2018 09:25
Show Gist options
  • Save j-greig/50e9b8142d5e5e0f535670f478213bbc to your computer and use it in GitHub Desktop.
Save j-greig/50e9b8142d5e5e0f535670f478213bbc to your computer and use it in GitHub Desktop.
Sample environment config file for Craft 3
# The environment Craft is currently running in ('dev', 'staging', 'production', etc.)
ENVIRONMENT="dev"
# The secure key Craft will use for hashing and encrypting data
SECURITY_KEY="generate-a-long-random-key-and-put-it-here"
# The database driver that will be used ('mysql' or 'pgsql')
DB_DRIVER="mysql"
# The database server name or IP address (usually this is 'localhost' or '127.0.0.1')
DB_SERVER="localhost"
# The database username to connect with
DB_USER="root"
# The database password to connect with
DB_PASSWORD=""
# The name of the database to select
DB_DATABASE="optima_local"
# The database schema that will be used (PostgreSQL only)
DB_SCHEMA="public"
# The prefix that should be added to generated table names (only necessary if multiple things are sharing the same database)
DB_TABLE_PREFIX=""
# The port to connect to the database with. Will default to 5432 for PostgreSQL and 3306 for MySQL.
DB_PORT=""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment