Skip to content

Commit

Permalink
adding Procfile and Foreman now we have multiple dev server processes…
Browse files Browse the repository at this point in the history
… to run
  • Loading branch information
tommorris committed Apr 12, 2017
1 parent b50a4da commit ea8e492
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ group :development, :test do
gem 'byebug', platform: :mri
gem 'rawler', git: 'git://github.com/oscardelben/rawler.git', require: false
gem 'rspec-rails', '~> 3.5'
gem 'foreman'
end

group :development do
Expand Down
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ GEM
faraday (0.11.0)
multipart-post (>= 1.2, < 3)
ffi (1.9.17)
foreman (0.84.0)
thor (~> 0.19.1)
formatador (0.2.5)
foundation-rails (6.3.0.0)
railties (>= 3.1.0)
Expand Down Expand Up @@ -306,6 +308,7 @@ DEPENDENCIES
colorize
dotenv-rails
elasticsearch
foreman
foundation-rails (= 6.3.0.0)
guard-livereload (~> 2.5)
jbuilder (~> 2.5)
Expand Down Expand Up @@ -334,4 +337,4 @@ RUBY VERSION
ruby 2.4.0p0

BUNDLED WITH
1.13.7
1.14.6
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: rails s
webpack: ./bin/webpack-dev-server
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ To compile assets in runtime simply start the webpack server with:
$ ./bin/webpack-dev-server
```

You can run both the Rails server and Webpack simultaneously using Foreman:

```
$ foreman start
```

### Features

- A powerful markup engine with pipeline (see [this blog post](https://lab.io/articles/2017/02/12/extending-markdown-with-middleware/) for details on how this works).
Expand Down

0 comments on commit ea8e492

Please sign in to comment.