Skip to content

Commit

Permalink
Allow sysadmins to change data/ path
Browse files Browse the repository at this point in the history
  • Loading branch information
marienfressinaud committed Apr 28, 2021
1 parent e67251d commit 889bb9a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog of flusio

## 2021-xx-yy - v0.21

### Migration notes

The `data/` directory can now contain big files (OPML importations). You can
move it to a different location by setting the `APP_DATA_PATH` variable in your
`.env` file. **Make sure to move the `data/migrations\_version.txt` file as
well!**

## 2021-04-24 - v0.20

### Improvements
Expand Down
2 changes: 2 additions & 0 deletions configuration/environment_development.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
'cli_locale' => $dotenv->pop('CLI_LOCALE'),
],

'data_path' => $dotenv->pop('APP_DATA_PATH', $app_path . '/data'),

'database' => [
'dsn' => "pgsql:host={$db_host};port={$db_port};dbname={$db_name}",
'username' => $dotenv->pop('DB_USERNAME'),
Expand Down
2 changes: 2 additions & 0 deletions configuration/environment_production.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
'port' => intval($dotenv->pop('APP_PORT', '443')),
],

'data_path' => $dotenv->pop('APP_DATA_PATH', $app_path . '/data'),

'application' => [
'support_email' => $dotenv->pop('APP_SUPPORT_EMAIL'),
'brand' => $dotenv->pop('APP_BRAND', 'flusio'),
Expand Down
8 changes: 6 additions & 2 deletions env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ APP_PORT=8000
# subpath.
# APP_PATH=/

# You can uncomment and change the path for the data. Default is the data
# directory presents in the current directory.
# APP_DATA_PATH=/path/to/data

# You can uncomment and change the path for the cache. Default is the cache
# directory presents in the current directory.
# APP_CACHE_PATH=/tmp
# APP_CACHE_PATH=/path/to/cache

# You can uncomment and change the path for the media files. Default is the
# media directory presents in the public/ directory. If you change this value,
# make sure the /media URL path is correctly served by your Web server.
# APP_MEDIA_PATH=/some/path/to/media
# APP_MEDIA_PATH=/path/to/media

##################################
# Database environment variables #
Expand Down

0 comments on commit 889bb9a

Please sign in to comment.