Skip to content

Instantly share code, notes, and snippets.

@namdau
namdau / vue-nginx.conf
Created July 31, 2017 18:04
Nginx config for Vuejs project with an API upstream
server {
server_name default_server;
# This is for Let's Encrypt certification renewal
include /etc/nginx/snippets/letsencrypt.conf;
# Redirect to https
location / {
return 301 https://$server_name$request_uri;
}
}
@ricardocabral
ricardocabral / trigger-travis.sh
Last active August 17, 2020 08:24
trigger a downstream travis build
#!/bin/bash
## brief: trigger a downstream travis build
## see: travis API documentation
## forked from https://raw.githubusercontent.com/stephanmg/travis-dependent-builds/master/trigger-travis.sh
# variables
USER=$1
REPO=$2
TRAVIS_ACCESS_TOKEN=$3
BRANCH=$4