https://github.com/toshimaru/webpack-rails-sample
https://github.com/toshimaru/webpack-rails-sample
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/toshimaru/webpack-rails-sample
- Owner: toshimaru
- Created: 2017-05-01T01:32:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T08:04:41.000Z (about 9 years ago)
- Last Synced: 2024-04-14T18:22:28.503Z (about 2 years ago)
- Language: Ruby
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-rails sample application
- Rails 5.1
- :gem: webpack-rails
- rails new with `--skip-sprockets`
## Functionality
- run servers with foreman in development
- Use `javascript_include_tag`
- webpack + webpack-dev-server
## Run development servers
```
$ foreman start
```
## Test production mode from localhost
```
$ RAILS_SERVE_STATIC_FILES=on SECRET_KEY_BASE=xxx RAILS_ENV=production foreman start
```