Permalink
Browse files

Safer commands in README

Adds `bundle exec` to all `rails` calls, in case there is an incompatible `rails` in the environment `PATH`.
  • Loading branch information...
lmrodriguezr committed Jan 23, 2018
1 parent 89c803b commit bdbe99ac867182535dcdfe357ad5e6e0670b7e94
Showing with 4 additions and 5 deletions.
  1. +4 −5 README.md
@@ -58,7 +58,7 @@ what we use.

```bash
export SECRET_KEY_BASE=`bundle exec rake secret`
rails s -e production Puma
bundle exec rails server -e production Puma
```

Now you can visit your MiGA Web interface at
@@ -69,7 +69,7 @@ it to rails using -b and -p. For example, this is how we launch our own

```bash
export SECRET_KEY_BASE=`bundle exec rake secret`
rails s -e production -b enve-omics.ce.gatech.edu -p 3000 Puma
bundle exec rails server -e production -b enve-omics.ce.gatech.edu -p 3000 Puma
```

## Create admin users
@@ -78,10 +78,9 @@ Once you create your first user from the website, you may want to make it an
admin. You can do so from the console:

```ruby
RAILS_ENV=production rails c
bundle exec rails console -e production
irb> u = User.find(1) # Change the 1 for the actual ID of your user
irb> u.admin = true
irb> u.save
irb> u.update(admin: true)
```

## How to run the test suite

0 comments on commit bdbe99a

Please sign in to comment.