项目作者: kharysharpe

项目描述 :
Docker w/ Nginx, PHP 7 (w/ xdebug locally) and Postgres (w/ adminer locally)
高级语言: Shell
项目地址: git://github.com/kharysharpe/docker-php.git
创建时间: 2018-01-23T14:28:38Z
项目社区:https://github.com/kharysharpe/docker-php

开源协议:

下载


DEVELOPMENT

NB Document Root is webapp/current/public

You must place your PHP application within this folder

Why? This allows for continuous deployment in production using zero downtime techniques. e.g. Envoyer. Zero downtime method pulls code from a repository into a new folder and then creates a symbol link to current to this new folder.

Generic PHP

  1. mkdir -p webapp/current/public

Setting up for Laravel

  1. cd webapp
  2. laravel new current

From a git repository

  1. cd webapp
  2. git clone http://repo current

Wordpress

  1. wget http://wordpress.org/latest.tar.gz
  2. tar xfz latest.tar.gz -C webapp/current/public
  3. rm -f latest.tar.gz

Building
Running the local (development) environment

  1. ./app build

Running the local (development) environment

  1. ./app watch

Running the local (development) environment detached

  1. ./app dev

Building the production environment

  1. ./app deploy

Running the production environment

  1. ./app start

Switching to php container

  1. ./app bash

Postgres is available on port 5432, database webapp is created by default.