Git Product home page Git Product logo

try-drupal's Introduction

Try Drupal

Want to quickly see how Drupal works?

This repo was created to make easy to spinning up Drupal sites.

Clone repository

git clone https://github.com/weknowinc/try-drupal

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.

Setup

Installling Ahoy


If you don have ahoy installed you can install on OS-X

brew install ahoy-cli/tap/ahoy

For instructions using other OS (Ahoy)[http://www.ahoycli.com/en/latest/#installation]

NOTE : This process must be done once per local computer.

Executing commands on the container


Task Using Ahoy
Starting containers ahoy up
Stoping containers ahoy down
Download Drupal ahoy download
Use composer ahoy composer require drupal/console:~1.0
Install Drupal ahoy drupal site:install standard --force --no-interaction

Executing docker-compose directly


Starting 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.

Download and install Drupal

docker-compose exec --user=82 php shell/init.sh

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 project.

try-drupal's People

Contributors

jmolivas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.