Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
zenizh committed Sep 15, 2017
1 parent 66f3dcb commit 493b51a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Expand Up @@ -36,22 +36,19 @@ To develop Repost, you should run servers of Ruby on Rails and Webpack.
```
$ git clone git@github.com:kami-zh/repost.git
$ cd repost
$ bundle install
$ bin/rails db:create db:migrate db:seed_fu db:populate
$ bin/setup
$ bin/rails db:populate # If needed
$ bin/rails s
$ bin/webpack-dev-server
```

To update the application you just run `bin/update`.

## Deployment

To start Repost on production, you should compile webpacker before running server of Ruby on Rails.

```
$ git clone git@github.com:kami-zh/repost.git
$ cd repost
$ vi config/database.yml
$ cp config/unicorn.rb.example config/unicorn.rb
$ vi config/unicorn.rb
$ bundle install --without development test
$ bin/yarn install --production
$ RAILS_ENV=production bundle exec rails webpacker:compile
Expand Down

0 comments on commit 493b51a

Please sign in to comment.