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

Simplify setup of library CMS locally #511

Closed
murny opened this issue Nov 26, 2023 · 0 comments
Closed

Simplify setup of library CMS locally #511

murny opened this issue Nov 26, 2023 · 0 comments

Comments

@murny
Copy link
Collaborator

murny commented Nov 26, 2023

The current README suggests manually replacing the Rails.application.secrets.cms_user / Rails.application.secrets.cms_password everywhere in our app (with dev-username and dev-password), but this shouldn't be necessary. Can just use the values in secrets.yml instead.

Also, we force users to go to Admin panel, create a site, then hop into console and run a rake task. Could we simplify this? How about having rails db:seeds do all this work for us? It could simply create the site and invoke the seed task for us.

This would mean rails db:create && rails db:migrate and the entire setup of the site, could just become rails db:setup instead.

murny added a commit that referenced this issue Nov 27, 2023
…call cms seeds task

Also tidy up gemfile, and remove 7.0 framework defaults initializer
murny added a commit that referenced this issue Dec 1, 2023
…l-dev

#511: Simplify local setup by using seeds task to generate site, and call cms seeds task
@murny murny closed this as completed Dec 1, 2023
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

1 participant