dav-m85/std-makefile

There is no license information available for the latest version (dev-master) of this package.

Installs: 198

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Language:Makefile

dev-master 2016-12-20 19:24 UTC

This package is not auto-updated.

Last update: 2024-05-03 07:57:06 UTC


README

Usage

In your composer.json

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/dav-m85/makefile-trusty"
        }
    ],
    "require": {
        "dav-m85/makefile-trusty":"dev-master"
    }
}

Then add the following makefile to your project

# Deploy configuration variables
CD=$(shell pwd)

# Silent include, if we haven't called build yet
-include vendor/dav-m85/makefile-trusty/trusty-deploy.mk

# Standard targets
build:
    composer install

install: std_deploy_nginx

make build && sudo make install shall now install nginx on your target machine.

Available targets

Variables in bold can be found inside the makefiles. They have default values. You can override them by definind them before or after the inclusion. Explore the trust-deploy-defaults.mk file to get the default values. Each target's algorithm is described below step by step.

std_deploy_nginx

  • Copy DIST file to NGINX_AVAILABLE
  • Replace REPLACE_VAR variables in the copied file.
  • Link it to a NGINX_NAME symlink inside of NGINX_ENABLED
  • Reload the nginx server