hpi-swt2 / vm-portal

A Ruby on Rails application for managing virtual machines via VMware vSphere
MIT License
3 stars 1 forks source link

Setup documentation #433

Open LeonMatthes opened 5 years ago

LeonMatthes commented 5 years ago

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:

krichly commented 5 years ago
chrisma commented 5 years ago

Include instructions for local production deployment

bdaase commented 5 years ago

@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 commented 5 years ago

What exactly was the idea with

how to create the database

?

chrisma commented 5 years ago

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 commented 5 years ago

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: 'first.last@example.com'
Should this user be made admin? [Y/n]