Skip to content

Commit

Permalink
Use craft prefix env
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Apr 11, 2022
1 parent d11c7be commit 4b9fd66
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 62 deletions.
4 changes: 2 additions & 2 deletions .env.bref
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ENVIRONMENT=dev
SECURITY_KEY=temp
CRAFT_ENVIRONMENT=dev
CRAFT_SECURITY_KEY=temp

DB_SERVER=postgres
DB_DATABASE=europa
Expand Down
2 changes: 1 addition & 1 deletion .env.docker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SECURITY_KEY=temp
CRAFT_SECURITY_KEY=temp

HOST_WEB_PORT=8080
HOST_DB_PORT=
Expand Down
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ENVIRONMENT=dev
CRAFT_ENVIRONMENT=dev

SECURITY_KEY=
CRAFT_SECURITY_KEY=

DB_DRIVER=pgsql
DB_SERVER=localhost
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/build-and-push.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/update-and-reseed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Update dependencies and reseed

on:
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
# schedule:
# - cron: "0 */12 * * *"

jobs:
update_and_reseed:
Expand Down
2 changes: 1 addition & 1 deletion config/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
'enableCsrfProtection' => true,
'useEmailAsUsername' => true,
'omitScriptNameInUrls' => true,
'securityKey' => App::env('SECURITY_KEY'),
'securityKey' => App::env('CRAFT_SECURITY_KEY'),
'maxInvalidLogins' => 1000,
'maxUploadFileSize' => 20000000,
'resourceBasePath' => dirname(__DIR__) . '/web/cpresources',
Expand Down
2 changes: 1 addition & 1 deletion web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

define('CRAFT_STREAM_LOG', true);
define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production');
define('CRAFT_ENVIRONMENT', getenv('CRAFT_ENVIRONMENT') ?: 'production');

if ($storagePath = getenv('CRAFT_STORAGE_PATH')) {
define('CRAFT_STORAGE_PATH', $storagePath);
Expand Down

0 comments on commit 4b9fd66

Please sign in to comment.