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.
This commit is contained in:
Peter Jones 2019-04-05 13:46:49 -07:00
parent 94d6158f04
commit 5fcb3fb482
No known key found for this signature in database
GPG key ID: 9DAFAA8D01941E49

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) ''