2017 © Pedro Peláez
 

library std-makefile

image

dav-m85/std-makefile

  • Tuesday, December 20, 2016
  • by dav-m85
  • Repository
  • 0 Watchers
  • 0 Stars
  • 107 Installations
  • Makefile
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 19 % Grown

The README.md

WIP Deploy makefile for trusty target

Usage

In your composer.json, (*1)

{
    "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, (*2)

# 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., (*3)

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., (*4)

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

The Versions

20/12 2016

dev-master

9999999-dev

  Sources   Download

26/01 2016

v0.1.0

0.1.0.0

  Sources   Download