Shift public resources into public folder

This commit is contained in:
Damian Mooyman 2017-12-20 16:07:07 +13:00
parent c9787b772d
commit 9252135f9b
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
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