Let's say you want to host domains first.com and second.com.
Create folders for their files:
| { | |
| "version": "https://jsonfeed.org/version/1", | |
| "title": {{ .Site.Title | jsonify }}, | |
| "home_page_url": {{ .Permalink | jsonify }}, | |
| {{ with .OutputFormats.Get "json" -}} | |
| "feed_url": {{ .Permalink | jsonify }}, | |
| {{- end }} | |
| {{ if (.Site.Params.author) or (.Site.Params.author_url) -}} | |
| "author": { | |
| {{ if .Site.Params.author -}} |
| version: '2' | |
| services: | |
| traefik: | |
| image: traefik | |
| command: -c /dev/null --web --docker --docker.domain=docker.localhost --logLevel=DEBUG --entryPoints="Name:https Address::443 TLS:/certs/server.crt,/certs/server.key;/certs_br/server.crt,/certs_br/server.key" --entryPoints="Name:http Address::80 Redirect.EntryPoint:https" | |
| ports: | |
| - "80:80" | |
| - "8080:8080" |
| version: '2' | |
| services: | |
| traefik: | |
| restart: unless-stopped | |
| image: traefik | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock:ro |
| package cmd | |
| import ( | |
| "strings" | |
| "github.com/chzyer/readline" | |
| "github.com/spf13/cobra" | |
| ) | |
| var shellCmd = &cobra.Command{ |
| package main | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "database/sql/driver" | |
| "fmt" | |
| "github.com/jmoiron/sqlx" | |
| _ "github.com/lib/pq" | |
| "log" |
| const webpack = require('webpack'); | |
| const WebpackDevServer = require('webpack-dev-server'); | |
| const config = require('../webpack.config'); | |
| const hotWebpackPort = process.env.HOT_WEBPACK_PORT || 3500; | |
| config.output.publicPath = `https://localhost:${hotWebpackPort}/assets/`; | |
| ['entry1', 'entry2'].forEach(entryName => { | |
| config.entry[entryName].push( | |
| 'webpack-dev-server/client?https://localhost:' + hotWebpackPort, | |
| 'webpack/hot/only-dev-server' |
| package main | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "net/http" | |
| "github.com/asaskevich/govalidator" | |
| ) |
| /** | |
| * Created by alicia.sykes on 17/07/2015. | |
| * To run script run "gulp" in the command line | |
| * To just watch files run "gulp watch" | |
| * To just clean the public directory run "gulp clean" | |
| */ | |
| /* Include the necessary modules */ | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); // For logging stats and warnings |