This is the Heroku buildpack for Synth web apps.
Requires that your app was made using Synth. Make sure that your app is using at least version 0.5.2
as specified in your back/package.json
file.
Here's an overview of what this buildpack does:
- Detects if your app is a Synth app by looking to see if you have a
synth.json
file in the root of your project. - Does all the stuff that the Official Heroku Node.js Buildpack does plus the following.
- Reads
package.json
from theback/
directory. - Installs
node_modules
inback/
. - Reads
bower.json
infront/
. - Installs
bower_components
infront/
. - Caches the
bower_components
directory across builds for fast deploys (just like it does fornode_modules
). - Doesn't use either cache if
node_modules
orbower_components
are checked into version control. - Auto-generates a Procfile in the root of your app if you don't have one. Has one line:
web: synth prod
(launches Synth server in production mode)
For more technical details, see the heavily-commented compile script.
# Create a new Heroku app that uses this buildpack
heroku create --buildpack https://github.com/JonAbrams/heroku-buildpack-synth -a <your_apps_name>
# Configure an existing Heroku app to use this buildpack
heroku config:set BUILDPACK_URL=https://github.com/JonAbrams/heroku-buildpack-synth