Skip to content
/ drupal-project Public template

Composer project for new drupal project

License

Notifications You must be signed in to change notification settings

mozodev/drupal-project

Folders and files

NameName
Last commit message
Last commit date
Jan 20, 2024
Jul 26, 2023
Aug 12, 2022
Oct 31, 2022
Jul 26, 2023
Jan 20, 2024
Aug 25, 2021
Aug 12, 2022
Aug 25, 2021
Jan 20, 2024
Jan 20, 2024
Jan 20, 2024

Repository files navigation

drupal-project

FROM drupal/recommended-project

development

# Just use this as template to create new repo and clone it.
# Check dependencies.
$ php -v && sqlite3 -version && composer -V
# $ mysql -V | psql -V
# Install php package dependencies
$ composer install

# cp config/site-dev/env.example ./.env
# @see composer.json:33
$ composer set-env
# @see composer.json:34
# Add env-vars.conf to expose envvar
# $ composer set-env:apache2

# Load env variable to shell
# https://direnv.net/
$ sudo apt install -y direnv
$ echo 'dotenv' > ./.envrc && direnv allow

# Run web server.
$ composer start

# [optional] Install site if needed.
$ composer site-install
# Uninstall site.
$ composer site-uninstall

deploy

$ cp .env .env.stage
# add envvars for stage
$ ./scripts/project/deploy-init.sh {-:stage|prod}

About

Composer project for new drupal project

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published