-
-
Save regonn/89ea2a14e2a6afc452ef55bfb264503b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| add-apt-repository ppa:certbot/certbot | |
| apt update | |
| apt upgrade | |
| apt install certbot | |
| ufw allow 80 | |
| certbot certonly --standalone --preferred-challenges http -d {独自ドメイン} | |
| ssh-keygen | |
| git clone [email protected]:regonn/jiji-with-ML.git | |
| mkdir -p jiji-with-ML/cert | |
| mv /etc/letsencrypt/archive/{独自ドメイン}/cert1.pem jiji-with-ML/cert/server.crt | |
| mv /etc/letsencrypt/archive/{独自ドメイン}/privkey1.pem jiji-with-ML/cert/server.key | |
| cd jiji-with-ML | |
| chown root.root cert/server.key | |
| chmod 600 cert/server.key | |
| vi docker-compose.yml # USER_SECRET を更新 | |
| docker-compose up -d | |
| fallocate -l 1G /swapfile | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| ローカル | |
| $ docker exec -it jiji_example__tensorflow /bin/bash | |
| cd /scripts | |
| python train_keras.py # 既にバックテストを実行して MongoDB にデータが入っている状態。 | |
| curl --upload-file ./param.hdf5 https://transfer.sh/param.hdf5 | |
| WEBサーバー | |
| $ docker exec -it jiji_example__tensorflow /bin/bash | |
| cd /scripts | |
| curl -O <transfer.sh生成URL> | |
| python server_keras.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment