-
Notifications
You must be signed in to change notification settings - Fork 0
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 'how to deploy' #417
add 'how to deploy' #417
Conversation
Deploy preview for cho-kure-web-storybook ready! Built with commit c789f8b https://deploy-preview-417--cho-kure-web-storybook.netlify.com |
README.md
Outdated
- production: `set :branch, "master"` in (/config/deploy/production.rb) | ||
- staging: `set :branch, "feature/{xxxx}"` in (/config/deploy/staging.rb) | ||
3. `$ bundle exec cap (staging | production) deploy` | ||
4. `$ ssh (stg_cho_kure_web | cho_kure_web)` でサーバに入る |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% cat ~/.ssh/config
Host cho_kure_web
HostName 52.199.95.54
Port 22
User euglena1215
IdentityFile ~/.ssh/id_rsa
Host stg_cho_kure_web
HostName 13.115.40.132
Port 22
User taira
IdentityFile ~/.ssh/id_rsa
この設定が必要なのってどこかに書いてあるっけ?
書いてなかったらどっかに書いておいてほしい!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今のところ何処にも書かれていないです!
githubにあげるのを躊躇って結局書かなかったんですよね
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ自体は問題ないと思ってる!
これに加えて、対応する公開鍵(~/.ssh/id_rsa.pub
)をサーバー側に置いておく必要があるから上記が広まったとしてもサーバーにアクセスできない限り問題なさそう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
closed #374
WHAT
やったこと