2018-08-01から1ヶ月間の記事一覧

特定のIP、ユーザからはrootでのアクセスを許可する

特定のIPアドレス、ユーザからのアクセスの場合のみrootでのアクセスを許可する。 PasswordAuthentication no PermitRootLogin no Match Address 192.168.1.1/32 PermitRootLogin without-password Match User hoge PermitRootLogin without-password Match…

serverless framework で AWS lambdaのデプロイをする

主に利用方法のメモです。 前提 nodeはインストール済み AWSの権限は設定済み インストール serverlessコマンドのエイリアスとしてslsコマンドが登録される。 $ npm install -g serverless $ sls -v 1.30.0 新規サービスの作成 ここではpython3のテンプレー…

Error: Could not locate Flask application. You did not provide the FLASK_APP environment variable.

英文そのまま。環境変数FLASK_APPを設定する。 export FLASK_APP=application.py flask run

DynamoDB ローカルのDockerをつくった

Vagrantに入れてたDynamoDB ローカルをDockerに移行した。 from openjdk:8-jre RUN mkdir /usr/local/dynamodb RUN curl https://s3-ap-northeast-1.amazonaws.com/dynamodb-local-tokyo/dynamodb_local_latest.tar.gz | tar zx -C /usr/local/dynamodb WORK…

JetBrains 隠しディレクトリのプロジェクトを開く

command + shift + periodで隠しディレクトリが表示される。 Mac - Open Project from Hidden folder on OSX – IDEs Support (IntelliJ Platform) | JetBrains

You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

Webpackを利用している場合、以下の記述を追加 module.exports = { // ... resolve: { alias: { 'vue$': 'vue/dist/vue.esm.js', } } } 参考 jp.vuejs.org