-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Jace Richardson edited this page Jan 10, 2019
·
19 revisions
Click here for instructions on setting up Docker
- Clone this repo (not the wiki) onto your computer
- SSH:
git@github.com:packettide/docker.git
- HTTPS:
https://github.com/packettide/docker.git
- SSH:
- Make the script globally accessible by creating a symlink using the following terminal command
- NOTE: This command is for mac, you may have to use a different method for other OS's.
- ln -sf [where you cloned this]/devstack.sh /usr/local/bin/devstack
- You may have to use
su
to have enough privileges to create this symlink
- You may have to use
When you change your devstack, it changes the connection details for your database. To make it so you don't have to edit your ExpressionEngine config each time, you can just include that file in your database.php
, config.php
, or master config at the bottom like so:
if (
substr($_SERVER['HTTP_HOST'], -9) === '.ngrok.io' ||
substr($_SERVER['HTTP_HOST'], -10) === '.localhost' ||
substr($_SERVER['HTTP_HOST'], -5) === '.test' ||
substr(parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST), -9) === '.ngrok.io' ||
substr(parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST), -10) === '.localhost' ||
substr(parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST), -5) === '.test'
) {
include FCPATH.'_docker/docker.database.php';
}
Head on over to our Usage page.