Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa9bf0a

Browse files
authored
add info regarding heroku-16 stack
1 parent bcf6184 commit fa9bf0a

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

‎README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,38 @@ Custom platform packages of V8Js for Heroku.
55
See [Heroku documentation](https://github.com/heroku/heroku-buildpack-php/blob/master/support/build/README.md)
66
for details on what this is all about.
77

8+
## Usage
9+
810
In order to use V8Js on Heroku you can (meanwhile) stick with the normal PHP buildpack.
9-
You just have to set the `HEROKU_PHP_PLATFORM_REPOSITORIES` like so:
11+
You just have to set the `HEROKU_PHP_PLATFORM_REPOSITORIES` environment variable on your app,
12+
depending on the stack you've chosen.
13+
14+
This will cause Heroku to fetch V8Js from "heroku-v8js" S3 bucket which is managed by
15+
[@stesie](https://github.com/stesie/) (current maintainer of V8Js).
16+
17+
### Configuration via Heroku Web Frontend
18+
19+
Within Heroku portal, choose your app and go to the Settings tab. In the section labeled
20+
Info you'll see which stack is currently activated, this should be either *heroku-16* or *cedar-14*.
21+
22+
Then click the button *Reveal Config Vars* from the Config Variables section, add a new record
23+
with key *HEROKU_PHP_PLATFORM_REPOSITORIES* and
24+
25+
* for heroku-16 stack: https://heroku-v8js.s3.amazonaws.com/dist-heroku-16-stable/packages.json as value
26+
* for cedar-14 stack: https://heroku-v8js.s3.amazonaws.com/dist-cedar-14-stable/packages.json
27+
28+
### Configuration via Heroku CLI
29+
30+
To find out which stack is currently active, use `heroku apps:info`.
31+
32+
Then if you're using the heroku-16 stack:
1033

1134
```
12-
heroku config:set HEROKU_PHP_PLATFORM_REPOSITORIES="https://heroku-v8js.s3.amazonaws.com/dist-cedar-14-stable/packages.json"
35+
heroku config:set HEROKU_PHP_PLATFORM_REPOSITORIES="https://heroku-v8js.s3.amazonaws.com/dist-heroku-16-stable/packages.json"
1336
```
1437

15-
This will cause composer to fetch V8Js from "heroku-v8js" S3 bucket which is managed by
16-
[@stesie](https://github.com/stesie/) (current maintainer of V8Js).
38+
Otherwise on cedar-14 type this:
39+
40+
```
41+
heroku config:set HEROKU_PHP_PLATFORM_REPOSITORIES="https://heroku-v8js.s3.amazonaws.com/dist-cedar-14-stable/packages.json"
42+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /