-
Notifications
You must be signed in to change notification settings - Fork 0
Home
== Git Addresses == Laravel Base
[https://github.com/riddles8888/LaravelBase https://github.com/riddles8888/LaravelBase]
Stygian Vault
[https://github.com/riddles8888/stygianvault https://github.com/riddles8888/stygianvault]
== Getting started == You will need to install the following prior to installing the base framework.
a document root of public for your project (for this example we are going to use public_html/public)
== Fetching the repository ==
'''Move into the public_html directory''' {{code|lang=bash|code=cd public_html}}
'''clone the git repository''' {{code|lang=bash|code=git clone git@github.com:riddles8888/LaravelBase.git ./}}
== Composer and Git Sub modules ==
'''Download all the composer dependencies for the laravel framework.''' {{code|lang=bash|code=composer install}}
'''Initialize the sub modules and download them''' {{code|lang=bash|code= git submodule init git submodule update }}
== Database ==
Create a new database for your install and add the credentials to the app/config/database.php file.
'''Generate your security key''' {{code|lang=bash|code=php artisan key:generate}}
'''Copy over the migrations and seeds''' {{code |lang=bash |code= cp app/core/database/migrations/fresh-install/* app/database/migrations cp app/core/database/seeds/fresh-install/* app/database/seeds }}
'''Install migrations table''' {{code|lang=bash|code=php artisan migrate:install}}
'''Run migrations''' {{code|lang=bash|code=php artisan migrate}}
'''Seed the database''' {{code|lang=bash|code=php artisan db:seed}}
And that's it!
== Known issues == '''500 Error'''
If you get a 500 error when you first try to view the new site check the permissions on public/ and public/index.php. If they are writable by group this can cause 500 errors.
{{code|lang=bash|code= chmod 755 public/ chmod 755 public/index.php }}