This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**Install Node.js** | |
cd ~ | |
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh | |
sudo bash nodesource_setup.sh | |
sudo apt-get install nodejs | |
sudo apt-get install build-essential | |
**Install Nginx** | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to upload file to s3 bucket. | |
var AWS = require('aws-sdk'); | |
AWS.config = new AWS.Config(); | |
AWS.config.accessKeyId = "XXX"; | |
AWS.config.secretAccessKey = "XXXXX"; | |
AWS.config.region = "ap-south-1"; | |
var s3 = new AWS.S3(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Create a droplet ## | |
Fortunately, DigitalOcean has a one-click image with Docker pre-installed on Ubuntu 14.04 use this link to create new droplet. | |
https://www.digitalocean.com/features/one-click-apps/docker/ | |
# Install the GitLab Runner # | |
First, login to the new droplet via SSH and verify that Docker is installed with: | |
`docker info` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Short note on how to manage multiple sites with SSL from Nginx | |
make domainOne.com domainTwo.com file in | |
/etc/nginx/sites-available | |
Contents of domainOne.com will look like this once done | |
server { | |
server_name domainOne.com www.domainOne.com; |
OlderNewer