- Create a PostgreSQL database and set the DSN connection string in the required environment variable :
DATABASE_URL=pgsql://[USER]:[PASSWORD]@[HOST]:[PORT]/[DATABASE_NAME]
- Create another environment variable containing the environment :
APP_ENV=[prep|prod] (prep is like prod but with debug mode enabled)
- Run the following commands at the root of your project :
# Install prerequisites
composer install --no-dev
npm install
# Apply migrations and load seed data
php bin/console doctrine:migrations:migrate --no-interaction
# Compile front-end resources
npm run build
- Start (or restart) web server