Skip to content

crew1274/web

Repository files navigation

Laravel PHP Framework

Build Status Total Downloads Latest Stable Version Latest Unstable Version License
$ cd /var/www/html
$ git clone https://github.com/crew1274/web
$ cd web
$ composer install
$ cp .env.example .env

Note: 檢查 .env的設定,預設使用SQLite3,需要PHP SQLite Extension。  

$ touch database/database.sqlite
$ php artisan key:generate
$ php artisan migrate --seed
$ cp storage/app/config_backup.json storage/app/config.json
$ sudo chmod 755 -R ../web/
$ sudo chmod o+w -R storage/
$ sudo vim /etc/apache2/sites-available/web.conf

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/web/public

    <Directory /var/www/html/web>
        AllowOverride All
    </Directory>

$ sudo a2dissite 000-default.conf
$ sudo a2ensite web.conf
$ sudo a2enmod rewrite
$ sudo service apache2 restart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •