Skip to content

Commit 75c3e11

Browse files
committed
user directory offers a better initial setup
1 parent f5782e5 commit 75c3e11

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NAME = apache
66
IMAGE_REPO = htmlgraphic
77
IMAGE_NAME = $(IMAGE_REPO)/$(NAME)
88
DOMAIN = htmlgraphic.com
9-
include .env
9+
include .env # .env file needs to created for this to work properly
1010

1111

1212
all:: help
@@ -47,8 +47,8 @@ push:
4747

4848
run:
4949
@echo 'Checking... initial run structure'
50-
@if [ ! -d "/Volumes/Case" ]; then \
51-
echo " Creating project folders" && sudo mkdir -p /Volumes/Case && sudo mkdir -p /Volumes/Case/SITES && sudo mkdir -p /Volumes/Case/SITES/docker; fi
50+
@if [ ! -d "~/SITES/docker" ]; then \
51+
echo " Creating project folders" && sudo mkdir -p ~/SITES && sudo mkdir -p ~/SITES/docker; fi
5252
@make env
5353
@echo "Upon initial setup run the following on the MySQL system, this will setup a GLOBAL admin:"
5454
@echo ""

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ Launch the **Apache** instance locally and setup a local MySQL database containe
5353
5454
```bash
5555
$ git clone https://github.com/htmlgraphic/Apache.git ~/Docker/Apache && cd ~/Docker/Apache
56+
$ cp .env.example .env
5657
$ make run
5758

5859
OR (non Make Windows)
5960

61+
$ copy .env.example .env
6062
$ docker-compose -f docker-compose.local.yml up -d
6163
```
6264

docker-compose.local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
image: 'htmlgraphic/apache:envoyer'
55
container_name: apache
66
volumes:
7-
- "/Volumes/Case/SITES/docker:/data" # <- Change to preferred local working dir
7+
- "~/SITES/docker:/data" # <- Change to preferred local working dir
88
#- "/c/Users/southpark/docker:/data"
99
links:
1010
- "db:mysql"

0 commit comments

Comments
 (0)