[[AWSメモ]] > * LocalStackでAWSローカル開発 [#w625f121] #setlinebreak(on) //** インストール [#f1c9758a] //https://docs.docker.com/docker-for-mac/install/ // // //** パッケージ更新 [#uc5689e5] //#myterm2(){{ //#pip install -U localstack //#}} ** イメージの準備 [#ud7bcc83] #myterm2(){{ docker pull localstack/localstack }} ** 起動 [#u3c0e15c] #myterm2(){{ docker run -it -p 4567-4582:4567-4582 -p 8080:8080 localstack/localstack }} ** 監視用の設定 [#l6f028d3] *** gulpのインストール [#c6ef412b] #myterm2(){{ sudo npm install gulp -g }} *** 監視用ディレクトリ作成 [#b8236f3d] #myterm2(){{ mkdir watch && cd watch }} //** [#ved7ae69] //#myterm2(){{ //npm init //gulp-watch //gulp-notify //gulp-plumbe //}} *** 監視用のコード作成 gulpfile.js #mycode2(){{ var gulp = require('gulp'); //var notify = require('gulp-notify'); var notifier = require('node-notifier'); // 監視 gulp.task('watch', function(){ var watcher = gulp.watch('results/*.txt'); watcher.on('change', function(event) { console.log('File ' + event.path + ' was ' + event.type + ', running tasks...'); notifier.notify({ //'title': 'ファイル更新', 'message': event.path + "が更新されました" }); }); }); // デフォルトタスクの指定 gulp.task('default', ['watch']); }} *** 監視の開始 [#l9658875] #myterm2(){{ gulp }}