mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
render
This commit is contained in:
parent
94a541eb5d
commit
3024fb1dad
48
Makefile
48
Makefile
@ -2,44 +2,52 @@ COMPOSER ?= composer
|
||||
BOWER ?= bower
|
||||
GIT ?= git
|
||||
MKDIR ?= mkdir
|
||||
PHP ?= php
|
||||
|
||||
all: update
|
||||
|
||||
composer:
|
||||
@echo
|
||||
#
|
||||
# Installing application's dependencies.
|
||||
#
|
||||
@echo "Installing application's dependencies"
|
||||
@echo "-------------------------------------"
|
||||
@echo
|
||||
|
||||
$(COMPOSER) install $(COMPOSER_INSTALL_FLAGS)
|
||||
bower:
|
||||
@echo
|
||||
#
|
||||
# Installing application's dependencies.
|
||||
#
|
||||
@echo "Installing application's dependencies"
|
||||
@echo "-------------------------------------"
|
||||
@echo
|
||||
|
||||
$(BOWER) install
|
||||
|
||||
optimize:
|
||||
@echo
|
||||
#
|
||||
# Optimizing Composer's autoloader, can take some time.
|
||||
#
|
||||
@echo "Optimizing Composer's autoloader, can take some time"
|
||||
@echo "----------------------------------------------------"
|
||||
@echo
|
||||
|
||||
$(COMPOSER) dump-autoload --optimize
|
||||
|
||||
update:
|
||||
@echo
|
||||
#
|
||||
# Updating application's dependencies.
|
||||
#
|
||||
@echo "Updating application's dependencies"
|
||||
@echo "-----------------------------------"
|
||||
@echo
|
||||
|
||||
$(GIT) pull origin master
|
||||
${MKDIR} -p data/git
|
||||
$(COMPOSER) update
|
||||
$(BOWER) install
|
||||
|
||||
run:
|
||||
@echo "Run development server"
|
||||
@echo "----------------------"
|
||||
@echo
|
||||
|
||||
$(PHP) -S 127.0.0.1:8080 -t web
|
||||
|
||||
propel:
|
||||
@echo
|
||||
#
|
||||
# Propel migration.
|
||||
#
|
||||
@echo "Propel migration"
|
||||
@echo "----------------"
|
||||
@echo
|
||||
|
||||
./vendor/propel/propel/bin/propel config:convert
|
||||
./vendor/propel/propel/bin/propel model:build --recursive
|
||||
./vendor/propel/propel/bin/propel migration:diff --recursive
|
||||
|
@ -85,7 +85,6 @@ Assuming `~/bin` exists ans is in `$PATH`.
|
||||
|
||||
bower install
|
||||
|
||||
|
||||
Makefile
|
||||
--------
|
||||
|
||||
@ -95,6 +94,7 @@ A Makefile is provided to automate some tasks.
|
||||
* `make optimize` will run Composer's autoloader dump script with classmap
|
||||
* `make update` will update the application
|
||||
* `make propel` will generate propel's files
|
||||
* `make run` will run development server on http://127.0.0.1:8080/
|
||||
|
||||
API
|
||||
---
|
||||
@ -115,7 +115,7 @@ Params:
|
||||
Example:
|
||||
```javascript
|
||||
{
|
||||
"url":"https:\/\/gist.deblan.org\/en\/view\/55abcfa7771e0\/f4afbf72967dd95e3461490dcaa310d728d6a97d",
|
||||
"url": "https:\/\/gist.deblan.org\/en\/view\/55abcfa7771e0\/f4afbf72967dd95e3461490dcaa310d728d6a97d",
|
||||
"gist": {
|
||||
"Id":66,
|
||||
"Title": "test prod",
|
||||
|
Loading…
Reference in New Issue
Block a user