Wallogit.com
2017 © Pedro Peláez
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)
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)