Nginx Server Blocks configuration to run more than one Laravel 5.1 web-app off of a single Linux server
- PHP package: php5-fpm php5-mcrypt php5-mysql
- Laravel 5.1
- Nginx 1.8
| // Note: we use JSON5 to be able to use comments | |
| // This file is a suggestion for how to customize the default "config:base" preset. The sections below reference | |
| // numbered tips from the cheat sheet in this article: https://www.augmentedmind.de/2023/07/30/renovate-bot-cheat-sheet/ | |
| { | |
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | |
| "extends": [ | |
| "config:recommended" | |
| ], | |
| // Configure PR assignees (#4) | |
| "assignees": [ |
| @tailwind base; | |
| @tailwind components; | |
| @import "base"; | |
| @import "custom"; | |
| @tailwind utilities; |
| # This script creates two kinds of isometric cameras. | |
| #The one, TrueIsocam called camera, is the mathematical correct isometric camera with the 54.736 rotation to get the 30 degrees angles at the sides of the rhombus. | |
| #The other, GameIsocam called camera, is a camera with which you can render isometric tiles for a 2d game. Here we need a 60 degrees angle instedad of the 54.736 one to get a proper stairs effect and a ratio of 2:1 | |
| # Then there is the special case with a 4:3 ratio, which is button 3. You can also make 2D games with that one. The view is more topdown though as with a 2:1 ratio of the traditional game iso view. | |
| # The fourth button creates a simple groundplane where you can place your stuff at. | |
| #You can of course set up everything by hand. This script is a convenient solution so that you don't have to setup it again and again. | |
| # The script is under Apache license |
| const _ = require('lodash'); | |
| module.exports = ({e, addUtilities, config}) => { | |
| const gradients = config('gradients', []) | |
| const variants = config('modules.gradients') | |
| const gradientUtilities = _.map(gradients, (colors, name) => { | |
| if (!_.isArray(colors)) { | |
| colors = ['transparent', colors]; | |
| } |
| const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
| const path = require("path"); | |
| const glob = require("glob-all"); | |
| const PurgecssPlugin = require("purgecss-webpack-plugin"); | |
| /** | |
| * Custom PurgeCSS Extractor | |
| * https://github.com/FullHuman/purgecss | |
| * https://github.com/FullHuman/purgecss-webpack-plugin | |
| */ |
| # copy into ~/.profile or ~/.bashrc | |
| #alias ls='ls -F --color --show-control-chars' | |
| alias ls='ls -F --show-control-chars' | |
| alias ll='ls -l' | |
| # Windows aliases | |
| alias cls='clear' | |
| alias dir='ls -F --color=always' | |
| alias del='rm' |
###Initial installation and configuration Install Git for Windows which includes Git Bash.
Install VirtualBox and Vagrant.
Note: These fixes were not originally done for VirtualBox 5.0 and Vagrant 1.7.4. They are for the previous versions instead: VirtualBox 4.3.30 and Vagrant 1.7.3. Some of these fixes may not be needed now. For example, I recently upgraded to VirtualBox 5.0 and Vagrant 1.7.4 and I did not have to alter the Vagrant ruby (.rb) files as shown in part of this Gist below. I'll soon try from a fresh install (not upgrade) and update this Gist accordingly.
In Git Bash (always run as administrator), type cd ~ to
| var gulp = require("gulp"); | |
| var sass = require("gulp-sass"); | |
| var filter = require('gulp-filter'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var browserSync = require("browser-sync"); | |
| var reload = browserSync.reload; | |
| var shell = require('gulp-shell'); | |
| // sass task | |
| gulp.task('sass', function () { |
| { | |
| "name": "project", | |
| "version": "0.0.0", | |
| "authors": [ | |
| "Eric Barnes <[email protected]>" | |
| ], | |
| "license": "MIT", | |
| "private": true, | |
| "ignore": [ | |
| "**/.*", |