Skip to content

Instantly share code, notes, and snippets.

@i2key
Created January 2, 2018 15:29
Show Gist options
  • Save i2key/c9c97c27783e10201b6f1e93f0186d27 to your computer and use it in GitHub Desktop.
Save i2key/c9c97c27783e10201b6f1e93f0186d27 to your computer and use it in GitHub Desktop.
heroku に node.js & mecab環境構築
$ heroku buildpacks:add --index 3 https://github.com/knjcode/heroku-buildpack-mecab-ipadic-neologd.git
 ▸    The buildpack https://github.com/knjcode/heroku-buildpack-mecab-ipadic-neologd.git is already set on your app.
$ heroku buildpacks:add --index 1 heroku/nodejs
Buildpack added. Next release on rapbattle-mecab will use:
  1. heroku/nodejs
  2. https://github.com/knjcode/heroku-buildpack-mecab-ipadic-neologd.git
Run git push heroku master to create a new release using these buildpacks.
$ heroku buildpacks:add --index 2 https://github.com/sunny4381/heroku-buildpack-linuxbrew.git
Buildpack added. Next release on rapbattle-mecab will use:
  1. heroku/nodejs
  2. https://github.com/sunny4381/heroku-buildpack-linuxbrew.git
  3. https://github.com/knjcode/heroku-buildpack-mecab-ipadic-neologd.git
Run git push heroku master to create a new release using these buildpacks.

これつかうために、linuxbrewでインストールしたいパッケージを指定する.cellerファイルを作る

mecab
mecab-ipadic
$ git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment