#!/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