<commit_before>---
layout: post
title: DevOps
tags: cloud
permalink: devops
---

## Varany vs. Docker
Vagrant is a tool for managing virtual machines. Docker is a tool for building and deploying applications by packaging them into lightweight containers.

## [Docker Benefits](http://knitatoms.net/2013/12/benefits-of-docker-for-application-deployment/)

## Nginx ByPass Confixguration

bypass.conf

```sh
server {
    listen 80;

    location / {
        proxy_pass http://127.0.0.1:8000;
    }
}
```

```sh
# debian
$ sudo apt-get install nginx
$ sudo vim /etc/nginx/sites-available/<your>.conf
$ sudo rm /etc/ngin/sites-enabled/default.conf
$ suo ln -f /etc/nginx/sites-available/<your>.conf /etc/sites-enabled/
$ sudo services nginx reload
```

## Nginx Allow File browser list

```sh
# debain
$ cd /usr/share/nginx/html
$ ln -s <path> <link_name>
```<commit_msg>Update 2014-08-09-dev-ops.md<commit_after>---
layout: post
title: DevOps
tags: cloud
permalink: devops
---

## Varany vs. Docker
Vagrant is a tool for managing virtual machines. Docker is a tool for building and deploying applications by packaging them into lightweight containers.

## Docker 
1.[Docker User Guide](https://docs.docker.com/userguide/)
2.[Docker Benefits](http://knitatoms.net/2013/12/benefits-of-docker-for-application-deployment/)
3.[Docker without Sudo Debian](https://docs.docker.com/installation/debian/#giving-non-root-access)

## Nginx ByPass Confixguration

bypass.conf

```sh
server {
    listen 80;

    location / {
        proxy_pass http://127.0.0.1:8000;
    }
}
```

```sh
# debian
$ sudo apt-get install nginx
$ sudo vim /etc/nginx/sites-available/<your>.conf
$ sudo rm /etc/ngin/sites-enabled/default.conf
$ suo ln -f /etc/nginx/sites-available/<your>.conf /etc/sites-enabled/
$ sudo services nginx reload
```

## Nginx Allow File browser list

```sh
# debain
$ cd /usr/share/nginx/html
$ ln -s <path> <link_name>
```
{'fraction_non_alphanumeric': 0.14345331246739698, 'fraction_numerical': 0.024517475221700575, 'mean_word_length': 3.6440677966101696, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '787903', 'n_tokens_mistral': 743, 'n_tokens_neox': 649, 'n_words': 173}