install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade| if(!(Get-Command git -ErrorAction SilentlyContinue)) { | |
| $gitDir = "$env:LOCALAPPDATA\CustomGit" | |
| if(Test-Path $gitDir) { Remove-Item -Path $gitDir -Recurse -Force } | |
| New-Item -Path $gitDir -ItemType Directory | |
| $gitLatestReleaseApi = (Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/git-for-windows/git/releases/latest).Content | ConvertFrom-Json | |
| $mingitObject = $gitLatestReleaseApi.assets ` | |
| | Where-Object {$_.name -match "MinGit-[\d.]*?-64-bit.zip"} ` | |
| | Select-Object browser_download_url |
| Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
| The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
| The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
| To use: | |
| 1. Install [Ansible](https://www.ansible.com/) | |
| 2. Setup an Ubuntu 16.04 server accessible over ssh | |
| 3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
| 4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
install the normal way:
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.7.2-omnibus.5.4.2.ci-1_amd64.deb & > /dev/null
sudo apt-get update
sudo apt-get upgrade| #first seen here: http://www.snip2code.com/Snippet/63701/Ansible-task-to-install-nvm-and-node | |
| # Here is how to install nvm and node in an Ansible task. | |
| # I tried a bunch of different things, and as usual it's simple, but you have to get it right. | |
| # The important part is that you have to shell with /bin/bash -c and source nvm.sh | |
| --- | |
| - name: Install nvm | |
| shell: > | |
| curl https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | sh | |
| creates=/home/{{ ansible_user_id }}/.nvm/nvm.sh |
Not sure if you are in the same boat as I, but I could not find any good resource out there that pulled this all together. So here is a step-by-step tutorial for creating a Node.js app from scratch, adding in Grunt and then Node-Sass. Yeah, try and find good docs on Node-Sass alone :(
Hope this is of help!
npm init - create a clean node project"private": true, to the package.json so that your project is not globally distributed as a npm app| server { | |
| listen 8080; | |
| server_name local.webblob.com; | |
| root /Users/cbednarski/code/WebBlob/src; | |
| error_page 403 /403.html; | |
| error_page 404 /404.html; | |
| error_page 500 /500.html; | |
| error_page 502 /502.html; | |
| error_page 503 /503.html; |