Skip to content

JonAbrams/heroku-buildpack-synth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Buildpack for Synth

This is the Heroku buildpack for Synth web apps.

Requirements

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.

How it Works

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 the back/ directory.
  • Installs node_modules in back/.
  • Reads bower.json in front/.
  • Installs bower_components in front/.
  • Caches the bower_components directory across builds for fast deploys (just like it does for node_modules).
  • Doesn't use either cache if node_modules or bower_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.

Usage

# 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

About

The official Heroku buildpack for Node.js apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%