Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fresh install: error on adding collection permissions #64

Closed
j2l opened this issue Aug 31, 2018 · 4 comments
Closed

fresh install: error on adding collection permissions #64

j2l opened this issue Aug 31, 2018 · 4 comments

Comments

@j2l
Copy link

j2l commented Aug 31, 2018

I installed expressa following readme and got an error after install:

error adding collection permissions

Error: could not load data

    at /rbd/pnpm-volume/db2e9f30-6bfe-4850-b75e-e887ea2d0f78/node_modules/.registry.npmjs.org/jfs/0.2.6/node_modules/jfs/lib/Store.js:209:15

    at ReadFileContext.callback (/rbd/pnpm-volume/db2e9f30-6bfe-4850-b75e-e887ea2d0f78/node_modules/.registry.npmjs.org/jfs/0.2.6/node_modules/jfs/lib/Store.js:94:16)

    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)

adding collection permissions for settings

adding collection permissions for collection

adding collection permissions for role

adding collection permissions for users

adding collection permissions for post

And this is the resulting admin UI I get:
image

@thomas4019
Copy link
Owner

thomas4019 commented Sep 4, 2018 via email

@j2l
Copy link
Author

j2l commented Sep 4, 2018

Thanks!
How can I create a new collection?
I don't have any option for that in the admin UI.

@thomas4019
Copy link
Owner

Hi, if you're running on port 80, then the collection creation and edit pages are hidden by default since it's safer not to enable that in a production environment. If you're only running locally or know you want editing in production you can setup the admin routes using the following code to always show option to create a new collection.

app.use('/admin', expressa.admin({ apiurl: '/api/', showCriticalFeaturesOnProduction: true }));

@j2l
Copy link
Author

j2l commented Sep 5, 2018

Thanks!
I now have "Add collection" button whick I didn't have before. You fixed it.

@j2l j2l closed this as completed Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants