실험자 (28) 썸네일형 리스트형 웹팩 배우기 1 웹팩 배우기 1 참고자료 Understanding the Modern Web Stack: Webpack - The Basics (link) What is webpack? a bundler for javascript applications Get started install node; do it yourself start a npm project npm init -y create two files index.html script.js with respect to where index.html is function component () { const element = document.createElement('div'); element.innerHTML = _.join(['Hello&.. 파이썬 프로젝트 구조와 패키징 Python Project Structure and Packaging Typical project file structure . ├── env │ ├── bin │ ... │ └── pyvenv.cfg ├── .git │ ├── branches │ ├── config | ... ├── .gitignore ├── helloworld │ ├── __init.py__ │ └── helloworld.py ├── Makefile ├── MANIFEST.in ├── README.md ├── requirements.txt ├── setup.py └── tests ├── test_advanced.py └── test_basic.py Brief summary File / Folder Content env/ virtual.. 리눅스 유용한 명령어: du du Summarize disk usage of the set of FILEs, recursively for directories. $ which du /usr/bin/du Examples $ du ~/Downloads ... 28 /home/dev/Downloads/emsdk/scripts 8 /home/dev/Downloads/emsdk/.circleci 776752 /home/dev/Downloads/emsdk 1078024 /home/dev/Downloads/ $ du -h ~/Downloads 28K /home/dev/Downloads/emsdk/scripts 8.0K /home/dev/Downloads/emsdk/.circleci 759M /home/dev/Downloads/emsdk $ du.. Nginx Beginner’s Guide Configuration File’s Structure nginx modules are controlled by directives defined in /etc/nginx/nginx.conf. two types of directives simple directive: name and parameters separated by spaces and ends with ;, e.g., listen 8080; block directive: name and parameters separated by spaces and ends with a body of curly braces ({}) which contains additional instructions and directives, called a context, .. nginx basics installation docker pull nginx docker container run -it -p 80:80 --name nginx bash # or via any other ways appropriate to OS verify installation # version check nginx -v # running processes ps -ef | grep nginx # will give at least one master process and one worker process # http request curl localhost # will return a default index.html in `usr/share/html/` folders and files /etc/nginx/: default .. 우분투 16.04 nginx 1.10 에서 1.16으로 업그레이드 situation on Ubuntu 16.04 xenial, apt install nginx whose version is 1.10.3 # cannot find newer than 1.10. $ sudo apt-get install nginx=1.17.* Reading package lists... Done Building dependency tree Reading state information... Done E: Version '1.17.*' for 'nginx' was not found $ sudo apt-get install nginx=1.10.* Reading package lists... Done Building dependency tree Reading state information... .. ngrok로 로컬호스트 외부에서 접속하기 installation download file (e.g., ngrok-stable-linux-amd64.zip) from here extract compressed file locate it where PATH is set up so it can be available anywhere, e.g., /usr/local/bin implementation ngrok http # e.g., for jenkins docker container created as below $ docker run --name jenkins \ -d -p 8888:8080 \ -v jenkins_home:/var/jenkins_home \ jenkinsci/blueocean # run ngrok as below: $ ngrok h.. Docker(도커)-Dockerfile Dockerfile excerpted from Docker Up and Running # Base layer to start the image build with FROM node:0.10 # populates `Author` field in image's metadata MAINTAINER Anna Doe # populates `Config`/`Labels` fields LABEL "rating"="Five Stars" "class"="First Class" # By default, processes within container run as root # recommended to switch to non-privileged user in production USER root ENV AP /data/a.. 이전 1 2 3 4 다음