-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-install.ps1
More file actions
32 lines (23 loc) · 911 Bytes
/
app-install.ps1
File metadata and controls
32 lines (23 loc) · 911 Bytes
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
# This script does the following...
#1. Downloads latest processwire code straight from github.
#2. Copies the Dev branch into the src folder
#3. Deletes the .git folder
if (!(Test-Path src -PathType Container)) {
new-item -itemtype Directory -force -path src
}
git clone https://github.com/processwire/processwire.git;
cd processwire;
git checkout dev;
cd ..;
Write-Host "Moving processwire core files to src folder"
Get-childitem -Path processwire -Exclude ".git" | Move-Item -Destination src;
Write-Host "Downloading Foundation 6 profile"
git clone https://github.com/flydev-fr/site-fdn6.git; #foundation 6 profile
cd site-fdn6;
git checkout precompiled;
cd ..;
Write-Host "Moving foundation 6 profile to src folder"
Move-Item -Path 'site-fdn6' -Destination 'src' -Force
Remove-Item -Path 'src/site-fdn6/.git' -Recurse -Force
Remove-Item -Path processwire -Recurse -Force
docker-compose up -d;