$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc# ------------------------------------| #! /bin/bash | |
| ###################################################################### | |
| # | |
| # This script generates an SSL certficate for local development. To | |
| # execute the script, run `bash create-dev-ssl-cert.sh`. Sudo is | |
| # needed to save the certificate to your Mac KeyChain. After the cert | |
| # is generated, you can use `HTTPS=true yarn start` to run the web | |
| # server. | |
| # |
| find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion |
| #!/bin/bash | |
| # PhalconPhp with PHP7 installation on ubuntu:16.04 | |
| sudo apt-get update | |
| sudo apt-get install -y php7.0-fpm \ | |
| php7.0-cli \ | |
| php7.0-curl \ | |
| php7.0-gd \ |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.
Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.
| http { | |
| upstream app-pc { | |
| server 127.0.0.1:8001; | |
| } | |
| upstream app-mobile { | |
| server 127.0.0.1:8002; | |
| } | |
| server { |
| /* | |
| * common react, redux staff here | |
| */ | |
| import {Router, createRoutes} from 'react-router'; | |
| import createBrowserHistory from 'history/lib/createBrowserHistory'; | |
| import rawRoutes from './routes'; | |
| import store from './store'; | |
| function mixStoreToRoutes(routes) { | |
| return routes && routes.map(route => ({ |
| FROM php:7.1-apache | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV DEBCONF_NONINTERACTIVE_SEEN=true | |
| RUN apt-get update -q \ | |
| && apt-get install unzip git libicu-dev curl libcurl4-gnutls-dev libmcrypt-dev -y --no-install-recommends | |
| RUN docker-php-ext-install intl sockets curl pdo_mysql \ | |
| # xdebug is installed, but not enabled |
| # | |
| # Acts as a nginx HTTPS proxy server | |
| # enabling CORS only to domains matched by regex | |
| # /https?://.*\.mckinsey\.com(:[0-9]+)?)/ | |
| # | |
| # Based on: | |
| # * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html | |
| # * http://enable-cors.org/server_nginx.html | |
| # | |
| server { |