devilbox/doc
2017-05-16 20:38:15 +02:00
..
img REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
Configuration.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
Emails.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
FAQ.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
Info.md REL-0.9 Update documentation 2017-05-16 20:38:15 +02:00
Intranet.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
Logs.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
PHP_Projects.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
README.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
Updating.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00
Usage.md REL-0.9 Adding separate documentation 2017-05-16 20:36:59 +02:00

Documentation

Home | Overview | Configuration | Usage | Updating | Info | PHP Projects | Emails | Logs | Intranet | FAQ


Documentation Overview

This is a brief overview to get you started as quick as possible. For in-depth documentation use the navigation above.

Install, Configure and Start

# Get the soures
$ git clone https://github.com/cytopia/devilbox
$ cd devilbox

# Create and customize the config file
$ cp env-example .env
$ vim .env

# Start your container
$ docker-compose up

Create projects

The main folder for your projects is defined in .env by the variable HOST_PATH_TO_WWW_DOCROOTS. Inside this defined folder you will have to create the following directory structure:

  project1/
     htdocs/
  project2/
     htdocs/
  some-random-name/
     htdocs  -> ./some-dir/              # <-- symlinks are also possible
	 some-dir/
  my-website.com/
     htdocs  -> /shared/httpd/site.com/  # <-- symlinks are also possible

You will then have to extend /etc/hosts with your created foldernames plus the tld suffix:

127.0.0.1 project1.loc
127.0.0.1 project2.loc
127.0.0.1 some-random-name.loc
127.0.0.1 my-website.com.loc

Contents inside the htdocs folder will be server via the configured domain automatically. So in order to access project2's htdoc folder go to http://project2.loc