Skip to content

eloirobe/eloi-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Eloi Framework App

Start using


git clone https://github.com/eloirobe/eloi-app.git
composer update

Apache Configuration

  • Apache Production Configuration file:
     <VirtualHost *:80>
         ServerName eloi.fw
         ServerAlias www.eloi.fw
         DocumentRoot /var/www/mpwar2015/eloi-app/web
         <Directory /var/www/mpwar2015/eloi-app/web/>
             Options Indexes FollowSymLinks MultiViews
             AllowOverride None
             Order allow,deny
             allow from all
             <IfModule mod_rewrite.c>
                 RewriteEngine On
                 RewriteCond %{REQUEST_FILENAME} !-f
                 RewriteRule ^(.*)$ /index.php [QSA,L]
                 RewriteEngine On
                 SetEnv ENV "PROD"
            </IfModule>
         </Directory>
     </VirtualHost>
  • Apache Development Configuration fil:
     <VirtualHost *:80>
         ServerName eloidev.fw
         ServerAlias www.eloidev.fw
         DocumentRoot /var/www/mpwar2015/eloi-app/web
         <Directory /var/www/mpwar2015/eloi-app/web/>
             Options Indexes FollowSymLinks MultiViews
             AllowOverride None
             Order allow,deny
             allow from all
             <IfModule mod_rewrite.c>
                 RewriteEngine On
                 RewriteCond %{REQUEST_FILENAME} !-f
                 RewriteRule ^(.*)$ /index_dev.php [QSA,L]
                 RewriteEngine On
            </IfModule>
         </Directory>
     </VirtualHost>

Database

  • Download sakila database
wget http://downloads.mysql.com/docs/sakila-db.tar.gz
  • Uncompress
tar -xzvf sakila-db.tar.gz
  • Copy to mysql
mysql -u root -p
mysql> SOURCE ./sakila-db/sakila-schema.sql;
mysql> SOURCE ./sakila-db/sakila-data.sql;
  • For dev you can copy this database to dev database
mysqldump -u root -p sakila > dump.sql
mysqladmin -u root -p create sakila_dev
mysqldump -u root -p sakila_dev < dump.sql 

Demo web app

http://eloi.fw/index.php/some-page

http://eloi.fw/index.php/some/theuser/page/3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published