From 441b7b9468848ab45bea5f43846100ad5d4ae1c6 Mon Sep 17 00:00:00 2001 From: Vanessa Fotso Date: Mon, 2 Oct 2023 16:10:03 -0400 Subject: [PATCH] Updated setup and readme Signed-off-by: Vanessa Fotso --- README.md | 26 ++++++++++++++------------ bin/setup | 3 --- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 38f42fce..4a499efb 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,15 @@ For more details on this release and previous ones, check the [Changelog](https: [Deploying Vulcan in Production](https://vulcan.mitre.org/docs/)   [](https://pages.github.com/)[](https://pages.github.com/) -## Deployment Dependencies: +## Deployment Dependencies + For Ruby (on Ubuntu): - * Ruby - * `build-essentials` - * Bundler - * `libq-dev` - * nodejs + +* Ruby +* `build-essentials` +* Bundler +* `libq-dev` +* nodejs ### Run With Ruby @@ -46,11 +48,13 @@ For Ruby (on Ubuntu): 1. Install the version of Ruby specified in `.ruby-version` 2. Install postgres and rbenv -3. gem install foreman -4. rbenv install -5. bin/setup +3. Run `gem install foreman` +4. Run `rbenv install` +5. Run `bin/setup` + + >> **Note**: `bin/setup` will install the JS dependencies andprepare the database. ->> **Note**: `bin/setup` will install the JS dependencies, prepare the database and load the sample data. +6. Run `rails db:seed` to seed the database. #### Running with Ruby @@ -73,7 +77,6 @@ For testing purposes in the development environment, you can use the following c 1. Stop Vulcan by doing `ctrl + c` 2. Stop the postgres server - ## Configuration See `docker-compose.yml` for container configuration options. @@ -132,4 +135,3 @@ This software was produced for the U. S. Government under Contract Number HHSM-5 No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation. For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000. - diff --git a/bin/setup b/bin/setup index b2407747..3b392888 100755 --- a/bin/setup +++ b/bin/setup @@ -28,9 +28,6 @@ FileUtils.chdir APP_ROOT do puts "\n== Preparing database ==" system! 'bin/rails db:create db:schema:load' - puts "\n== Seeding database ==" - system! 'bin/rails db:seed' - puts "\n== Removing old logs and tempfiles ==" system! 'bin/rails log:clear tmp:clear'