Skip to content

Commit b39d159

Browse files
committed
Merge branch 'feature/LAYOUT_CODE' into develop
2 parents e8609cb + 3067c53 commit b39d159

File tree

11 files changed

+53
-39
lines changed

11 files changed

+53
-39
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
.idea
33
nbproject
44
/backup/*
5-
/htdocs/*
5+
/code/*

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ deploy:
4545
bash bin/deploy.sh
4646

4747
clean:
48-
test -d htdocs/typo3temp && { rm -rf htdocs/typo3temp/*; }
48+
test -d code/typo3temp && { rm -rf code/typo3temp/*; }
4949

5050
bash:
5151
docker-compose run --rm main bash

README-NEOS.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ For the first NEOS setup (make sure [composer](https://getcomposer.org/) is inst
1010

1111
or
1212

13-
$ rm -f htdocs/.gitkeep
14-
$ composer create-project typo3/neos-base-distribution htdocs/
15-
$ touch htdocs/.gitkeep
13+
$ rm -f code/.gitkeep
14+
$ composer create-project typo3/neos-base-distribution code/
15+
$ touch code/.gitkeep
1616

1717

18+
And change DOCUMENT_ROOT in docuer-env.yml:
19+
20+
DOCUMENT_ROOT=code/Web/
21+
1822
Feel free to modify your NEOS installation in your htdocs (a shared folder of Docker),
1923
most of the time there is no need to enter any Docker container.
2024

21-
2225
## NEOS cli runner
2326

2427
You can run one-shot command inside the `TYPO3` service container:

README-TYPO3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ For the first TYPO3 setup (make sure [composer](https://getcomposer.org/) is ins
1010

1111
or
1212

13-
$ rm -f htdocs/.gitkeep
14-
$ composer create-project typo3/cms-base-distribution htdocs/
15-
$ touch htdocs/FIRST_INSTALL htdocs/.gitkeep
13+
$ rm -f code/.gitkeep
14+
$ composer create-project typo3/cms-base-distribution code/
15+
$ touch htdocs/FIRST_INSTALL code/.gitkeep
1616

1717

1818
Feel free to modify your TYPO3 installation in your htdocs (a shared folder of Docker),

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ Recreate containers (if there is any issue or just to start from a clean build)
6363
$ docker-compose build --no-cache
6464
$ docker-compose up -d
6565

66+
Logs (eg. for debugging)
67+
68+
$ docker-compose logs
69+
70+
# or only php
71+
$ docker-compose logs main
72+
73+
# or only php and nginx
74+
$ docker-compose logs main
75+
76+
6677
## Create new project
6778

6879
First create and run the Docker containers using [docker-compose](https://github.com/docker/compose):
@@ -74,7 +85,7 @@ Now create the project:
7485
- [Create new TYPO3](README-TYPO3.md)
7586
- [Create new NEOS](README-NEOS.md)
7687

77-
For an existing project just put your files into htdocs/ folder or use git to clone your project into htdocs.
88+
For an existing project just put your files into code/ folder or use git to clone your project into code/.
7889

7990

8091
## Informations
@@ -188,7 +199,7 @@ Setting | Value
188199
Hostname | IP or Hostname of VM
189200
Port | 8000
190201
Use path mappings | Check
191-
Path mapping of htdocs | /docker/htdocs/
202+
Path mapping of code | /docker/code/
192203

193204
Add a debug connection (Run -> Edit -> Connections) and create a new connection.
194205

@@ -205,7 +216,7 @@ Save, set a break point and test the debugger.
205216
Use this boilerplate as template and customize it for each project. Put this Docker
206217
configuration for each project into seperate git repositories.
207218

208-
Now set your existing project repository to be a git submodule in htdocs/.
219+
Now set your existing project repository to be a git submodule in code/.
209220
Every developer now needs only to clone the Docker repository with **--recursive**
210221
to get both, the Docker configuration and the TYPO3 installation.
211222

bin/.config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222

2323
SCRIPT_DIR=$(dirname $($READLINK -f "$0"))
2424
ROOT_DIR=$($READLINK -f "$SCRIPT_DIR/../")
25-
TYPO3_DIR=$($READLINK -f "$ROOT_DIR/htdocs")
25+
CODE_DIR=$($READLINK -f "$ROOT_DIR/code")
2626

2727
BACKUP_DIR=$($READLINK -f "$ROOT_DIR/backup")
2828
BACKUP_SOLR_FILE='solr.cores.tbz2'

bin/create-project.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ if [ "$#" -ne 1 ]; then
1212
exit 1
1313
fi
1414

15-
mkdir -p -- "$TYPO3_DIR/"
15+
mkdir -p -- "$CODE_DIR/"
1616

17-
rm -f -- "$TYPO3_DIR/.gitkeep"
17+
rm -f -- "$CODE_DIR/.gitkeep"
1818

1919
case "$1" in
2020
###################################
2121
## TYPO3 CMS
2222
###################################
2323
"cms")
24-
execInDir "$TYPO3_DIR" "composer create-project typo3/cms-base-distribution \"$TYPO3_DIR\""
25-
execInDir "$TYPO3_DIR" "touch FIRST_INSTALL"
24+
execInDir "$CODE_DIR" "composer create-project typo3/cms-base-distribution \"$CODE_DIR\""
25+
execInDir "$CODE_DIR" "touch FIRST_INSTALL"
2626
;;
2727

2828
###################################
2929
## TYPO3 NEOS
3030
###################################
3131
"neos")
32-
execInDir "$TYPO3_DIR" "composer create-project typo3/neos-base-distribution \"$TYPO3_DIR\""
32+
execInDir "$CODE_DIR" "composer create-project typo3/neos-base-distribution \"$CODE_DIR\""
3333
;;
3434
esac
3535

36-
touch -- "$TYPO3_DIR/.gitkeep"
36+
touch -- "$CODE_DIR/.gitkeep"

bin/deploy.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.config.sh"
1313

1414
sectionHeader "Checking TYPO3 installation ..."
1515

16-
if [ ! -d "$TYPO3_DIR/fileadmin" -o ! -d "$TYPO3_DIR/typo3conf/ext/" ]; then
17-
errorMsg "Either $TYPO3_DIR/fileadmin or $TYPO3_DIR/typo3conf/ext/ doesn't exists"
16+
if [ ! -d "$CODE_DIR/fileadmin" -o ! -d "$CODE_DIR/typo3conf/ext/" ]; then
17+
errorMsg "Either $CODE_DIR/fileadmin or $CODE_DIR/typo3conf/ext/ doesn't exists"
1818
exit 1
1919
fi
2020

@@ -24,9 +24,9 @@ fi
2424

2525
sectionHeader "Checking for composer.json ..."
2626

27-
if [ -f "htdocs/composer.json" ]; then
27+
if [ -f "$CODE_DIR/composer.json" ]; then
2828
# Install composer
29-
execInDir "$TYPO3_DIR" "composer install --no-dev --no-interaction"
29+
execInDir "$CODE_DIR" "composer install --no-dev --no-interaction"
3030
fi
3131

3232
#######################################
@@ -35,7 +35,7 @@ fi
3535

3636
sectionHeader "Checking for bower.json ..."
3737

38-
find "$TYPO3_DIR/fileadmin" "$TYPO3_DIR/typo3conf/ext/" -type f -name 'bower.json' | while read FILE; do
38+
find "$CODE_DIR/fileadmin" "$CODE_DIR/typo3conf/ext/" -type f -name 'bower.json' | while read FILE; do
3939
BOWER_JSON_DIR=$(dirname $($READLINK -f "$FILE"))
4040

4141
execInDir "$BOWER_JSON_DIR" "bower install --silent"
@@ -48,7 +48,7 @@ done
4848

4949
sectionHeader "Checking for package.json (npm) ..."
5050

51-
find "$TYPO3_DIR/fileadmin" "$TYPO3_DIR/typo3conf/ext/" -type f -name 'package.json' | while read FILE; do
51+
find "$CODE_DIR/fileadmin" "$CODE_DIR/typo3conf/ext/" -type f -name 'package.json' | while read FILE; do
5252
PACKAGE_JSON_DIR=$(dirname $($READLINK -f "$FILE"))
5353

5454
if [ ! -d "$PACKAGE_JSON_DIR/node_modules/" -a -n "`which npm-cache`" ]; then
@@ -66,6 +66,6 @@ done
6666

6767
sectionHeader "Checking for gulpfile.js in T3 Root ..."
6868

69-
if [ -f "$TYPO3_DIR\gulpfile.js" ]; then
70-
execInDir "$TYPO3_DIR" "gulp deploy"
69+
if [ -f "$CODE_DIR\gulpfile.js" ]; then
70+
execInDir "$CODE_DIR" "gulp deploy"
7171
fi
File renamed without changes.

docker-compose.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ nginx:
2424
env_file:
2525
- docker-env.yml
2626

27-
#httpd:
28-
# build: docker/httpd/
29-
# ports:
30-
# - 8000:80
31-
# links:
32-
# - main
33-
# volumes_from:
34-
# - main
35-
# env_file:
36-
# - docker-env.yml
27+
httpd:
28+
build: docker/httpd/
29+
ports:
30+
- 8001:80
31+
links:
32+
- main
33+
volumes_from:
34+
- main
35+
env_file:
36+
- docker-env.yml
3737

3838
mysql:
3939
build: docker/mysql/

0 commit comments

Comments
 (0)