Profile cover photo
Profile photo
Wolke Lin
875 followers
875 followers
About
Wolke's posts

Post has attachment
aws ebs 好用
可以直接連mount上ec2

Post has attachment
**
想來寫點東西, 因為我記得我還滿會寫的,, 因該說還滿會用手指放屁的吧! 我的人生, 私領域的部份, 應該會這麼的過二十年吧? 這是我要的嗎? 但我肯定我得給秦秦一個完整的家的責任是肯定的,不管過程是酸甜苦辣。 可是二十年過了之後呢? 秦秦長大總會嫁的吧! 就算有二寶 三寶, 嫁娶之後呢? 或者岌岌於追求自已的人生目標? 然後, 我,會滿意嗎? 今天看花甲男孩轉大人後面的花絮, 說: 這是一群長不大的男孩的故事, 每一個都沒有目標的, 得過且過的, 只是有人過到三十, 有人過到了五十。

Post has attachment
website-scraper 好用的爬網站套件
npm install website-scraper

Post has attachment
nginx cache
worker_processes 4; events { worker_connections 1024; } http { proxy_cache_path /tmp/cache levels= 1:2 keys_zone=cache:30m max_size=1G; upstream app_upstream { server localhost: 3001; } server { listen 80; location /static { proxy_cache cache; proxy_cache_v...

Post has attachment
nginx cache 終於弄出來了!!!! 哭!!
worker_processes 4; events { worker_connections 1024; } http { proxy_cache_path /tmp/cache levels= 1:2 keys_zone=cache:30m max_size=1G; upstream app_upstream { server localhost: 3001; } server { listen 80; location /static { proxy_cache cache; proxy_cache_v...

Post has attachment
docker single docker file on aws nginx setting
FROM  node:7.4.0 RUN  mkdir -p /usr/src/app WORKDIR  /usr/src/app ARG  NODE_ENV ENV  NODE_ENV $NODE_ENV RUN  npm install yarn -g ADD  package.json /usr/src/app/package.json RUN  yarn ENV  NGINX_VERSION 1.11.8-1~jessie RUN  apt-key adv --keyserver hkp://pgp....

Post has attachment
解 dokcer nodejs "ENOENT: no such file or directory, uv_cwd" issue.
可能是docker 內部的神奇部份, 所以只要 node app.js 跟 node ./app.js or node ../app/app.js 每個docker node 錯開 啟使,就正常了

Post has attachment
aws eb multi docker Dockerrun.aws.json
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_v2config.html {   "AWSEBDockerrunVersion": 2,   "volumes": [     {       "name": "app",       "host": {         "sourcePath": "/var/app/current/app"       }     },     {       "name"...

Post has attachment
multi docker nginx + nodejs 心得
用nginx prxoy 可以mapping到不同的image,但外部可以持續用相同的cookie .  多專案debug時,直接用內網ip做 proxy_pass就可以了 用docker-compose做 multi docker,做link後,所有的port都不需要開到外部去,增加安全性. server { listen 80; server_name localhost; location /test { proxy_pass http://app:3000/test;
# proxy_...

Post has attachment
docker nginx 連外面的localhost port
 proxy_pass          http://192.168.1.108:3000/; 直接mapping 內網ip
Wait while more posts are being loaded