https://github.com/weknowinc/sandcamp-demo
Sandcamp Drupal Demo
https://github.com/weknowinc/sandcamp-demo
Last synced: 2 months ago
JSON representation
Sandcamp Drupal Demo
- Host: GitHub
- URL: https://github.com/weknowinc/sandcamp-demo
- Owner: weknowinc
- License: gpl-2.0
- Created: 2018-03-22T07:34:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T07:55:11.000Z (over 8 years ago)
- Last Synced: 2025-02-27T10:57:40.964Z (over 1 year ago)
- Language: PHP
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Composer template for Drupal projects.
> Optimized to use with Docker and DrupalConsole.
### Clone repository
```
git clone https://github.com/weknowinc/drupal-project
```
### Copy and rename the `.env.dist` file
```
cp .env.dist .env
```
### Edit configuration
Edit the copied `.env` file and make changes according to your project needs.
Example update default `HOST_NAME` from `drupal.develop` to `mysite.develop`.
### Starting the containers
To start the containers you need to execute the following command docker-compose up -d, grab some coffee or a beer and be patient while the images are downloaded to your local computer.
```
docker-compose up -d
```
NOTE: We suggest provide the detached mode flag to run in background.
### Add hostname entry in your `/etc/hosts` file
```
127.0.0.1 drupal.develop
```
NOTE: Use your own domain if you make changes in the copied `.env` file.
Open your browser and point to `http://drupal.develop/` or the hostname you entered on the `.env` file.
### Shutting down the containers
```
docker-compose down
docker-compose down -v
```
NOTE: You can pass the -v flag to destroy the shared volumes as well. Be careful this will destroy any data on the shared volumes between the container and the local machine.
### Checking for used ports
One common issue you'll likely run into while starting the containers, is finding the ports in use, this could mean an instance of Apache, Nginx, MySQL or other service is already running, so if you want to know what is using the ports you can run this commands on your terminal:
```
# web (Apache, Nginx)
lsof -i :80
# db (MySQL, MariaDB)
lsof -i :3306
```
We based the docker configuration of this repository on the [Drupal4Docker](https://github.com/wodby/docker4drupal) project.
We based the composer configuration on the [drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-project) project.
Click here for info about [composer](composer.md).