Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add document about .cfignore #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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