Denhac / ApplicationAPI

4 stars 0 forks source link

Automated install/setup script #16

Open stonaker opened 7 years ago

stonaker commented 7 years ago

For ease in testing, create an install shell script that allows the user to:

  1. Create a new CentOS VM in VirtualBox
  2. Copy this shell script to it
  3. Run it poof magic happens The install script retrieves the git repo, copies files where necessary, updates config files, and sets up the DB. Then after a reboot, the member DB, API, and test data will exist on the new VM, fully functional. Having this tool for the radio station sped up development immensely, and reduced onboarding time for a new developer to a cup of coffee.

Radio station install script to model: https://github.com/Denhac/KOMF-LP/blob/master/install/install.sh

stonaker commented 7 years ago

I should note that the same script also performs an in-place upgrade, since each step has a built-in "check if already exists" catch, and files from the repo get copied over their older versions.

But if anyone knows how to build rpms, doing install/upgrade via a package is the right way to go. I've just never done it before.

Bueller...Bueller...Bueller...