Shift public resources into public folder (#220)

This commit is contained in:
Damian Mooyman 2018-01-12 16:28:15 +13:00 committed by Aaron Carlino
parent decd8bb446
commit a892272cc5
8 changed files with 10 additions and 4 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
/.env
/vendor/
/themes/simple/
/resources/
/resources/
/public/resources/

2
.htaccess Normal file
View File

@ -0,0 +1,2 @@
RewriteEngine On
RewriteRule .* public/%1

View File

@ -13,9 +13,11 @@
},
"extra": {
"project-files": [
"assets/*",
"mysite/_config/*",
".env.example",
".env.example"
],
"public-files": [
"assets/*",
"favicon.ico"
],
"branch-alias": {
@ -28,4 +30,4 @@
},
"prefer-stable": true,
"minimum-stability": "dev"
}
}

1
mysite/_config/theme.yml Normal file → Executable file
View File

@ -3,5 +3,6 @@ Name: mytheme
---
SilverStripe\View\SSViewer:
themes:
- '$public'
- 'simple'
- '$default'

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB