fliglio/app

Demo Application for Fliglio Framework

v2.1.1 2015-04-15 20:24 UTC

This package is auto-updated.

Last update: 2022-07-29 01:09:50 UTC


README

Install

application scaffolding

composer create-project fliglio/app --dev

docker

docker build -t benschw/fl .
docker run -t -d -p 80 benschw/fl


docker build -t dev/fliglio-app . && docker run -t -d -p 80:80 -v /home/ben/dev/fliglio-app/:/var/www/ --name fliglio-app dev/fliglio-app
docker build -t dev/fliglio-app . && docker kill fliglio-app && docker rm fliglio-app && docker run -t -d -p 80:80 -v /home/ben/dev/fliglio-app/:/var/www/ --name fliglio-app dev/fliglio-app

vhost-myapp

<VirtualHost *:80>
    DocumentRoot "/var/www/my-app/web"
    ServerName fl.local
    <Directory "/var/www/my-app/web">

        RewriteEngine On
        RewriteCond %{SCRIPT_FILENAME} -f [OR]
        RewriteCond %{SCRIPT_FILENAME} -d
        RewriteRule .+ - [L]

        RewriteRule ^(.*)$ /app.php [L,QSA]

        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Require all granted
        Allow from all
    </Directory>
</VirtualHost>

Try it out

curl http://fl.local/api/foo