forked from jnunemaker/heroku-buildpack-ghostscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7ce9492
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Heroku Buildpack for Ghostscript | ||
|
||
Currently installs Ghostscript 9.10 on Heroku Cedar. | ||
|
||
## Install | ||
|
||
# Use heroku-buildpack-multi | ||
$ cd /path/to/your-app | ||
$ heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git | ||
|
||
# Create a .buildpack file with including ghostscript | ||
$ cd /path/to/your-app | ||
$ cat .buildpack | ||
https://github.com/heroku/heroku-buildpack-ruby.git | ||
https://github.com/elbongurk/heroku-buildpack-ghostscript.git | ||
|
||
# Push changes to deploy | ||
$ git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
# bin/compile <build-dir> <cache-dir> | ||
|
||
echo "-----> Installing Ghostscript 9.10" | ||
|
||
cd $1 | ||
curl http://vulcan-elbongurk.herokuapp.com/output/7720a18a-a89c-4ab0-8555-ef80378d1240 -s -o gs.tgz | ||
mkdir -p vendor/gs | ||
tar -C vendor/gs -xvf gs.tgz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
# bin/detect <build-dir> | ||
|
||
echo "Ghostscript 9.10" | ||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# bin/release <build-dir> | ||
|
||
cat <<EOF | ||
--- | ||
config_vars: | ||
PATH: /app/vendor/gs/bin:$PATH | ||
EOF |