All Projects → febeling → webpack-rails-buildpack

febeling / webpack-rails-buildpack

Licence: MIT license
Buildpack for webpack-rails

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to webpack-rails-buildpack

Zewo
Lightweight library for web server applications in Swift on macOS and Linux powered by coroutines.
Stars: ✭ 1,856 (+9668.42%)
Mutual labels:  buildpack
Dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications
Stars: ✭ 22,155 (+116505.26%)
Mutual labels:  buildpack
Create React App Buildpack
⚛️ Heroku Buildpack for create-react-app: static hosting for React.js web apps
Stars: ✭ 3,161 (+16536.84%)
Mutual labels:  buildpack
tomee-buildpack
Cloud Foundry buildpack for running Java applications using TomEE
Stars: ✭ 12 (-36.84%)
Mutual labels:  buildpack
custom-ssh-key-buildpack
🔑 Add an SSH key to you Heroku dyno 🔑
Stars: ✭ 49 (+157.89%)
Mutual labels:  buildpack
heroku-buildpack-gradle
This is a Heroku buildpack for Gradle apps. It uses Gradle to build your application and OpenJDK to run it.
Stars: ✭ 58 (+205.26%)
Mutual labels:  buildpack
swift-buildpack
IBM Cloud buildpack for Swift
Stars: ✭ 33 (+73.68%)
Mutual labels:  buildpack
heroku-buildpack-tex
A Heroku buildpack to run TeX Live inside a dyno.
Stars: ✭ 18 (-5.26%)
Mutual labels:  buildpack
buildpack-stdlib
[DEPRECATED] A standard library for Heroku buildpacks written in bash.
Stars: ✭ 19 (+0%)
Mutual labels:  buildpack
cloud-native-pipelines
Cloud-native pipelines leveraging Concourse, Pivotal Build Service and Spinnaker to deploy apps
Stars: ✭ 15 (-21.05%)
Mutual labels:  buildpack
heroku-buildpack-graphviz
Install Graphviz on Heroku
Stars: ✭ 18 (-5.26%)
Mutual labels:  buildpack

webpack-rails-buildpack

A buildpack to support Heroku deployments for applications using webpack-rails.

Name on Heroku's buildpack registry: febeling/webpack-rails

Note: Now that Rails (>= 5.1) has the webpacker gem there are few reasons to use this buildpack. The default Heroku Ruby buildpack can handle webpacker, too.

Installation

Heroku Dashboard

Add a custom buildpack to your to your application's Settings tab under section Buildpacks by using the URL of this repository, instead of the short name of Heroku's own buildpacks. It goes alongside your Ruby and Node buildpacks, placed in last position.

After the release of registered buildpacks, it will be available under the name febeling/webpack-rails, adhearing to the suggested naming conventions there.

Heroku CLI

First, check your Heroku app has the Ruby and Node buildpacks added, in the command line run:

heroku buildpacks

If they are added you should see:

your-app-1234 Buildpack
1. heroku/nodejs
2. heroku/ruby

To add the Webpack Rails buildpack in the last index, run this command:

heroku buildpacks:add --index 3 febeling/webpack-rails

Usage

On deployment, the buildpack runs the build command bundle exec rake webpack:compile. Under default configuration that will output the compiled assets under public/webpack.

Package Manager

Heroku supports both NPM and Yarn as Javascript package managers. This buildpack will detect which one to use automatically, based on the persence of a version-lock file. Projects that use yarn have a yarn.lock file, while those that use npm have a package-lock.json (or none if using an older version of npm).

This buildpack will set the YARN environment variable accordingly, which will make that the effective package manager for Javascript.

Using the latest buildpack code

The febeling/webpack-rails buildpack from the Heroku Registry contains the latest stable version of the buildpack. If you'd like to use the latest buildpack code from this Github repository, you can set your buildpack to the Github URL:

heroku buildpacks:add --index 3 https://github.com/febeling/webpack-rails-buildpack

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Started on 5 June 2016.

Credits

Created by Florian Ebeling.

License

See LICENSE.md file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].