Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ http://phantomjs.org/download.html
Setup
-----

###With Docker:
### With Docker:
```
$ cp .env.example .env
$ cp docker-compose.yml.example docker-compose.yml
Expand All @@ -30,7 +30,7 @@ $ docker-compose exec app rake db:setup
$ docker-compose exec app rake user:populate_users
```

###Without Docker:
### Without Docker:
```
$ cp .env.example .env
$ bundle install
Expand All @@ -40,12 +40,13 @@ $ bundle exec rake user:populate_users
$ rails s
```

If you get errors like `Unknown MySQL server host 'db'`, try
If you get errors like `Unknown MySQL server host 'db'`, try:
```
$ mysql -u root
mysql> create database eff_fab_dev;
mysql> use eff_fab_dev;
grant all privileges on *.* to 'fab'@'localhost' identified by 'some_password';
```

### Populate Database Records
To prime up the database with a basic admin user, run `rake db:seed`. To populate the app for EFF usage, login as the admin user (see application.yml for credentials) and navigate to `/admin` and click the button for `Populate Users`, this will scrape https://www.eff.org/about/staff for user names, emails, and pictures and plug them into the database.
Expand Down