https://github.com/weknowinc/drupal.develop
https://github.com/weknowinc/drupal.develop
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/weknowinc/drupal.develop
- Owner: weknowinc
- License: gpl-2.0
- Created: 2018-07-09T21:28:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:21:40.000Z (over 3 years ago)
- Last Synced: 2025-03-31T05:41:28.450Z (over 1 year ago)
- Language: PHP
- Size: 312 KB
- Stars: 3
- Watchers: 0
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
drupal.develop
--
## Project dependencies
* [git](https://git-scm.com/)
* [docker](https://www.docker.com/)
* [ahoy (ver 2)](https://github.com/ahoy-cli/ahoy)
## Project setup
```
# Clone repository
git clone git@github.com:weknowinc/drupal.develop.git
# Copy .env file
cp .env.dist .env
# Add hostname entry in your /etc/hosts file
127.0.0.1 drupal.develop
# Start containers
ahoy up
```
## Sync Project
```
# Switch develop branch
git checkout master
# Fetch latest changes
git fetch upstream
# Merge changes locally
git merge upstream/master
# Sync forked repo
git push origin/master
# Download new dependencies
ahoy composer install
# Build Drupal site
ahoy drupal build:develop
# Create branch
git checkout -b BRANCH_NAME
# Add file changes
git add -p
# Commit changes
git commit -m MESSAGE_SUBJECT
# Push code to repository
git push origin BRANCH_NAME
```
## Using Composer
```
ahoy composer install
ahoy composer require drupal/MODULE_NAME
ahoy composer remove drupal/MODULE_NAME
```
## Export Configuration
```
# Using default drupal config system
ahoy drupal config:export --no-interaction
# Using config_split
ahoy drupal config_split:export --no-interaction
```