-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Python基礎 | ||
|
||
## 環境作るなら | ||
|
||
- pyenvを入れる | ||
- brewで入れる | ||
- pyenvでpythonを入れる | ||
- pipはセットで入る | ||
- この記事を参考にした | ||
- [Pythonの開発環境を用意しよう!(Mac)](https://prog-8.com/docs/python-env) | ||
- pipを確認 | ||
- pipはpythonとセットで入る | ||
- pipのバージョンを確認 | ||
- `pip --version` | ||
- pipのアップデート | ||
- `pip install --upgrade pip` | ||
- pipで入れたものは、globalに管理されるっぽい | ||
- `pip list` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# さくらサーバを今後どうしていくか | ||
|
||
さくらVPS | ||
3つ | ||
|
||
## サーバA | ||
|
||
コスト: 15,000/年 | ||
|
||
image | ||
http://ssssssssss.jpg | ||
http://ssssssssss.json | ||
|
||
> S3にする | ||
> S3 標準 - 低頻度アクセス | ||
> 標準 <-> 低頻度の切り替えも簡単 | ||
## サーバB | ||
|
||
コスト: 800/月 | ||
|
||
railsで作ったAPI | ||
railsで作った管理画面 | ||
Let's Encrypt | ||
https://ssssss.ssssss | ||
|
||
> API Gateway + Lambda | ||
> parameter store なら無料 | ||
> 複雑ならDynamo | ||
> S3にjsonをおいて、lambdaがそれを見にいく感じ | ||
> バケットを分ける | ||
## サーバC | ||
|
||
コスト: 500/月 | ||
|
||
PDFのファイルサーバ | ||
http://aaaaaaaaaaaaa.pdf | ||
|
||
> S3にする | ||
> S3 標準 - 低頻度アクセス | ||
AWSでドメイン使うと $0.5/mon | ||
S3のURLを、今と同じURLにすることも可能 | ||
URLが複雑で再現むずいなら、Cloud Front を使うこともできる | ||
SSLするならCloud Front 必須、証明書はAWSがくれるはず | ||
サービス断が一瞬発生(起きないかも) | ||
|
||
お名前.comのドメイン設定を | ||
|
||
|
||
|
||
native患者が存在している && 閲覧許可をしている場合 && アプリ導線がTrueになっている場合 | ||
patient_app_patient | ||
and patient_app_patient.visible_pharmacy_admin | ||
and request.user.pharmacy.visible_linkage_native_app | ||
|
||
|