プログラミング

シンプルに使い方を紹介

2017-06-03から1日間の記事一覧

【Python】【Heroku】FlaskでWebアプリケーションを作成

$ pip install flask $ pip install gunicorn $ pip freeze > requirements.txt $ echo 'web: gnicorn hello:app --log-file=-' > Procfile hello.py # -*- coding: utf-8 -*- from flask import Flask app = Flask(__name__) @app.route('/') def hello_wor…

【Shell】特定のワードを含む過去のコマンド履歴を検索

historyのオプションはどの程度までコマンドを遡るかを意味する $ history -500 | grep "検索したいワード"

【Heroku】初期設定

HerokuToolbelt導入済みを仮定 $ git init $ git add . $ git commit -m"message" $ heroku login $ heroku create 『アプリ名』 $ git push heroku master $ heroku open アプリの更新方法 $ git add . $ git commit -m"message" $ git push heroku master …

【Python】pipの基本的な利用方法

インストール $ pip install 『モジュール』 アンインストール $ pip uninstall 『モジュール』 インストールリスト一覧 $ pip freeze