-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
107 lines (73 loc) · 2.36 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#
#
# The build, release and restart targets are defined in the app, and are run at different stages of the build.
# The build and release are done on the build-server (pubhub), whereas the restart are run on each webnode
#
# Notice that the pco.json conf file is not present during the build phase, but it present during release
#
build: composer createDirectoryStructure
release: createSettings migrate publishResources
restart: flushCache warmupCache
#
# These are the general targets used for most Neos/Flow deployments
#
composer:
composer install --no-dev
createDirectoryStructure:
mkdir fileadmin fileadmin/_temp_ fileadmin/user_upload
mkdir typo3conf/l10n typo3conf/ext
mkdir typo3temp typo3temp/Cache typo3temp/compressor typo3temp/cs typo3temp/GB typo3temp/InstallToolSessions typo3temp/llxml typo3temp/locks typo3temp/pics typo3temp/_processed_ typo3temp/sprites typo3temp/temp
mkdir uploads uploads/media uploads/pics uploads/tx_felogin
#
# Since the Resource dir is a shared folder, we need to remove it before the ng-deployment can make a shared folder. If
# the folder already exists, the folder wil not be shared.
#
rmResourcesDir:
rm -rf Web/_Resources
#
# The settings and Cache files are based on the existence of the pco.json file
#
createSettings:
php Build/WriteSettingsFromEnvironment.php > Configuration/Settings.yaml
php Build/WriteCacheSettingsFromEnvironment.php > Configuration/Caches.yaml
flushCache:
php flow flow:cache:flush
warmupCache:
php flow flow:cache:warmup
nodeRepair:
php flow node:repair
clearResources:
php flow ng:cleanresources
publishResources:
php flow resource:publish
migrate: createSettings
php flow doctrine:migrate
showSetupPassword:
cat Data/SetupPassword.txt
pruneSite:
php flow site:prune
importSite:
php flow site:import --package-key TYPO3.NeosDemoTypo3Org
listSites:
php flow site:list
createRevsbechUser:
php flow user:create "revsbech" "eo0Fiesh3foh" "Jan-Erik" "Revsbech" --roles Administrator
resetRevsbechPassword:
php flow user:setpassword "revsbech" "eo0Fiesh3foh"
listUsers:
php flow user:list
showSettingsConfiguration:
./flow configuration:show --type Settings
showCacheConfiguration:
./flow configuration:show --type Caches
#
# Various helper targets for debugging
#
listStorageFiles:
ls -alph files/Resources/
listFiles:
ls -alph
listSharedFiles:
ls -alph files
listWebFiles:
ls -alph Web