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

Setup documentation #433

Open
3 of 5 tasks
LeonMatthes opened this issue Feb 27, 2019 · 6 comments
Open
3 of 5 tasks

Setup documentation #433

LeonMatthes opened this issue Feb 27, 2019 · 6 comments
Assignees
Labels
prio: medium This is a medium priority issue.

Comments

@LeonMatthes
Copy link
Contributor

LeonMatthes commented Feb 27, 2019

User Story

As a HART administrator
I want to have the setup steps for HART documented
in order to be able to set HART up on my own

Acceptance Criteria:

  • A wiki page exists for how to setup HART
  • The page contains information about how to create the first admin
  • how to create the database
  • how to configure the git ssh
  • how to setup OAuth
@krichly krichly added the prio: medium This is a medium priority issue. label Feb 27, 2019
@krichly
Copy link
Contributor

krichly commented Feb 27, 2019

  • how to configure the hpi openid identity provider (I can write this section)

@chrisma
Copy link
Contributor

chrisma commented Mar 7, 2019

Include instructions for local production deployment

@bdaase bdaase self-assigned this Mar 30, 2019
@bdaase
Copy link
Contributor

bdaase commented Mar 31, 2019

@chrisma @krichly The Setup page can be found here: https://github.com/hpi-swt2/vm-portal/wiki/HART-Setup.

It would be great if you could add your sections there.

@bdaase
Copy link
Contributor

bdaase commented Mar 31, 2019

What exactly was the idea with

how to create the database

?

@chrisma
Copy link
Contributor

chrisma commented Apr 2, 2019

What exactly was the idea with "how to create the database" ?

I would assume the steps necessary to create a db from scratch, i.e. rails db:setup, which calls schema:load and db:seed (https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/databases.rake#L223)

@chrisma
Copy link
Contributor

chrisma commented Apr 2, 2019

I could also imagine a small custom rake task (https://guides.rubyonrails.org/command_line.html#custom-rake-tasks) could be useful for the "Create the first admin" task, which promotes an existing user to admin and ignores problems with git.

$ bin/rails setup:create_admin

Only one user was found: '[email protected]'
Should this user be made admin? [Y/n]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio: medium This is a medium priority issue.
Projects
None yet
Development

No branches or pull requests

4 participants