Skip to content

Commit

Permalink
[#44] Adds local filesystem and asset volume
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed Sep 27, 2024
1 parent 6ed09de commit 659c795
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example.dev
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ CRAFT_SECURITY_KEY=
CRAFT_DEV_MODE=true
CRAFT_ALLOW_ADMIN_CHANGES=true
CRAFT_DISALLOW_ROBOTS=true

# Asset Settings
ASSET_FILESYSTEM=local
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.DS_Store
node_modules
/web/dist
/web/assets
/web/imager
/.vite
php-cs-fixer.cache

Expand Down
11 changes: 10 additions & 1 deletion config/project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1727299637
dateModified: 1727307125
email:
fromEmail: $SYSTEM_EMAIL_FROM
fromName: 'Viget Craft Starter'
Expand All @@ -11,10 +11,19 @@ email:
useAuthentication: '1'
username: $SYSTEM_EMAIL_USERNAME
transportType: craft\mail\transportadapters\Smtp
fs:
local:
hasUrls: true
name: Local
settings:
path: '@webroot/assets'
type: craft\fs\Local
url: /assets/
meta:
__names__:
35b563a0-4662-40b9-b885-a8450a2868d9: 'Viget Craft Starter' # Viget Craft Starter
805d8826-faed-4186-9b88-f509eb9b07e6: 'Viget Craft Starter' # Viget Craft Starter
853413e4-e02c-487e-81a5-04e58eb18683: Assets # Assets
b7e66782-af96-4012-9e17-914134073ced: Simple # Simple
plugins:
aws-s3:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
altTranslationKeyFormat: null
altTranslationMethod: none
fieldLayouts:
a7f496e4-142f-49a4-b241-2cb6ce1a1f30:
tabs:
-
elementCondition: null
elements:
-
autocapitalize: true
autocomplete: false
autocorrect: true
class: null
dateAdded: '2024-09-25T21:25:44+00:00'
disabled: false
elementCondition: null
id: null
includeInCards: false
inputType: null
instructions: null
label: null
max: null
min: null
name: null
orientation: null
placeholder: null
providesThumbs: false
readonly: false
requirable: false
size: null
step: null
tip: null
title: null
type: craft\fieldlayoutelements\assets\AssetTitleField
uid: 46777601-180e-43d4-8853-3ab2dcd42057
userCondition: null
warning: null
width: 100
-
attribute: alt
class: null
cols: null
dateAdded: '2024-09-25T21:27:17+00:00'
disabled: false
elementCondition: null
id: null
includeInCards: false
instructions: null
label: null
name: null
orientation: null
placeholder: null
providesThumbs: false
readonly: false
requirable: true
required: false
rows: null
tip: null
title: null
type: craft\fieldlayoutelements\assets\AltField
uid: d508c2f5-a04e-4614-b005-f848c95bfaa5
userCondition: null
warning: null
width: 100
name: Content
uid: c5d6deb9-e383-44bf-aa0f-a8de30dfca6f
userCondition: null
fs: $ASSET_FILESYSTEM
handle: assets
name: Assets
sortOrder: 1
subpath: ''
titleTranslationKeyFormat: null
titleTranslationMethod: site
transformFs: $ASSET_FILESYSTEM
transformSubpath: transforms

0 comments on commit 659c795

Please sign in to comment.