-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_server
More file actions
executable file
·26 lines (20 loc) · 897 Bytes
/
run_server
File metadata and controls
executable file
·26 lines (20 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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