https://github.com/mozodev/drupal-project
Composer project for new drupal project
https://github.com/mozodev/drupal-project
composer drupal
Last synced: 11 months ago
JSON representation
Composer project for new drupal project
- Host: GitHub
- URL: https://github.com/mozodev/drupal-project
- Owner: mozodev
- License: mit
- Created: 2021-08-25T10:14:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-20T01:22:08.000Z (about 2 years ago)
- Last Synced: 2025-04-10T19:16:28.914Z (12 months ago)
- Topics: composer, drupal
- Language: Shell
- Homepage:
- Size: 1.07 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drupal-project
FROM [drupal/recommended-project](https://github.com/drupal/recommended-project)
## development
```bash
# 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
```bash
$ cp .env .env.stage
# add envvars for stage
$ ./scripts/project/deploy-init.sh {-:stage|prod}
```