Skip to content

fliglio/fliglio-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fliglio-app

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