Skip to content

Commit 22c5067

Browse files
committed
Changed htdocs/ to code/
General code storage, to reduce confusion if something like NEOS which is using additional Web/ directory
1 parent e8609cb commit 22c5067

File tree

10 files changed

+39
-36
lines changed

10 files changed

+39
-36
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),

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/

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ var gulp = require('gulp');
22
var chug = require('gulp-chug');
33

44
gulp.task('default', function () {
5-
gulp.src(['./htdocs/typo3conf/ext/*/gulpfile.js'])
5+
gulp.src(['./code/typo3conf/ext/*/gulpfile.js'])
66
.pipe(chug());
77
});
88

99
gulp.task('deploy', function () {
10-
gulp.src(['./htdocs/typo3conf/ext/*/gulpfile.js'])
10+
gulp.src(['./code/typo3conf/ext/*/gulpfile.js'])
1111
.pipe(chug({
1212
tasks: ['deploy']
1313
}));

0 commit comments

Comments
 (0)