Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
bin/run + README
Browse files Browse the repository at this point in the history
  • Loading branch information
teamon committed May 18, 2014
1 parent 8197475 commit fcffdcc
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
29 changes: 25 additions & 4 deletions README.md
Expand Up @@ -2,8 +2,29 @@

![](https://dl.dropboxusercontent.com/s/6vqm0w07skh906s/2014-05-18%20at%2003.27.png)

## Applications
## Running the example

- Blog
- Admin
- Dashboard
##### 1. Ensure RabbitMQ is installed and running

On Mac OSX with homebrew you can install RabbitMQ with

```bash
$ brew install rabbitmq
```

And start it using
```
$ /usr/local/opt/rabbitmq/sbin/rabbitmq-server
```

##### 2. Setup and start all processes

```bash
$ bin/run
```

##### 3. Open all three applications in browser

- [Blog (http://localhost:5001)](http://localhost:5001)
- [Dashboard (http://localhost:5002)](http://localhost:5002)
- [Admin (http://localhost:5003)](http://localhost:5003)
26 changes: 26 additions & 0 deletions bin/run
@@ -0,0 +1,26 @@
#!/bin/bash

set -e
set -x

cd blog
bundle check || bundle install
rake db:migrate
cd ..

cd dashboard
bundle check || bundle install
cd ..

cd admin
bundle check || bundle install
rake db:migrate
cd ..

cd config
bundle check || bundle install
rake rabbitmq:setup
cd ..

which foreman > /dev/null 2>&1 || gem install foreman
foreman start

0 comments on commit fcffdcc

Please sign in to comment.