Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cloud_foundry/sample_application.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ Procfileの確認・必要なら書き換え
$ cat Procfile
web: bin/hubot -a slack
```
.cfignoreファイルを下記のように作成
```
$ cat .cfignore
node_modules
```
```
$ cf push myhubot
$ cf set-env myhubot HUBOT_SLACK_TOKEN xoxb-abcdefghijklmnopqrstuvwxyz0123456789
$ cf restart myhubot
```

> note: デプロイに失敗し,「The app upload is invalid: Symlink(s) point outside of root folder」とエラーがエラーが出る時の対処法
> "rm -R ./node_modules" を実行してください

`cf app myhubot` でデプロイしたアプリの状態を確認できます。
`state` (状態)が `running` (実行)になっていれば :+1: です。

Expand Down