mckaygerhard
3b2eac3cbc
* lib - class.validator > fix validator class for required and non required in class.validator when many parameters are sent.. the validator if you used required only validate the last one.. fix so if this is not required and the first one is required, let the validation pass or do not pass any * lib - class.validator > support for GET and POST autodetection validator allows to send and assigation of the array vars validations this allows to you to use also PUT for api calls.. autodetection of the type, if will be GET or POST array if no speciall call is given.. * lib - class.model > mkid autoincrement string/key for ODBC/sql ansi DBMS Create PICCORO's crazy ID posta is not crazy.. allows to use autoincremnet no matter if database support it or not this permit that you can create a simpel nont dependendant database. with this you identify several things, full date, where when inserted it sorts itself since it will never give a smaller number * editor config, set to 0 spaces ini files * ignore shit of mocosoft vscode
27 lines
897 B
Bash
Executable File
27 lines
897 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Guachi (Lightweight and very simple web development framework)
|
|
# https://gitlab.com/vitronic/Guachi_Framework
|
|
#
|
|
# Copyright (c) 2018 Díaz Devera Víctor (Máster Vitronic)
|
|
# Licensed under the MIT license.
|
|
# For development use only!
|
|
# @see https://secure.php.net/manual/en/features.commandline.webserver.php
|
|
|
|
# Warning!
|
|
# This web server was designed to aid application development. It may also be
|
|
# useful for testing purposes or for application demonstrations that are run
|
|
# in controlled environments. It is not intended to be a full-featured web server.
|
|
# It should not be used on a public network.
|
|
|
|
. ./.env
|
|
|
|
if [ -s env ]; then
|
|
. env
|
|
fi
|
|
|
|
# to run this must be `authbind --deep ./server-sample`
|
|
# previously do instalation of authbind and chown the owner by user that run of /etc/authbind/byport/$APP_PORT}
|
|
|
|
env php -S ${APP_HOST} -S ${APP_HOST}:${APP_PORT} -t public
|