Browse Source

Slight permission change so that nginx and serve Rails assets

Now that we point nginx at /var/lib/rails instead of /nix/store we
need to change the permissions on the app home to allow nginx to read
files from the Rails' public directory.
pjones/monitoring
Peter J. Jones 1 year ago
parent
commit
5fcb3fb482
Signed by: pjones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/services/web/rails/systemd.nix

+ 1
- 1
modules/services/web/rails/systemd.nix View File

@@ -79,7 +79,7 @@ let

# Fix permissions:
chown -R rails-${app.name}:rails-${app.name} ${app.home}
chmod go+rx $(dirname "${app.home}")
chmod go+rx $(dirname "${app.home}") "${app.home}"
chmod u+w ${app.home}/db/schema.rb

'' + optionalString (service.isMain && app.database.migrate) ''


Loading…
Cancel
Save