This is an outdated repository with no more updates. Please use this new repo : https://github.com/jgrunder/website-aion-laravel
This is a of the website and the back-office website
-
Execute :
composer install
on the project root -
Create a
.env
file to the project root
APP_ENV = production
APP_DEBUG = false
APP_KEY = H3vhkJ12XDwU7MQHfAY2yh7pucgndLZc
APP_URL = https://server-aion.com
PUSHBULLET_KEY =
DB_HOST_GS = localhost
DB_DATABASE_GS = aion_gs
DB_USERNAME_GS = root
DB_PASSWORD_GS = root
DB_HOST_LS = localhost
DB_DATABASE_LS = aion_ls
DB_USERNAME_LS = root
DB_PASSWORD_LS = root
DB_HOST_WS = localhost
DB_DATABASE_WS = aion_ws
DB_USERNAME_WS = root
DB_PASSWORD_WS = root
CACHE_DRIVER = file
SESSION_DRIVER = file
QUEUE_DRIVER = sync
MAIL_DRIVER = smtp
MAIL_HOST = mailtrap.io
MAIL_PORT = 2525
MAIL_USERNAME = null
MAIL_PASSWORD = null
-
Update
APP_KEY
on your .env file -
Update
APP_URL
on your .env file -
Update
DB_HOST_GS | DB_HOST_LS | DB_HOST_WS
and other for have access to databases. (You need create empty database for the website) -
You have a config files :
config/aion.php
-
Execute :
php artisan migrate
-
After Having execute the command, all databases have been modified.
-
Execute :
php artisan db:seed
-
After having execute the command, a news have been added.
-
Execute
npm install
and thengulp --production
-
After having execute the command, all assets have been created and compile
The framework ships with a public/.htaccess file that is used to allow URLs without index.php. If you use Apache to serve your Laravel application, be sure to enable the mod_rewrite module.
If the .htaccess file that ships with Laravel does not work with your Apache installation, try this one:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
On Nginx, the following directive in your site configuration will allow "pretty" URLs:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
There is an exemple on the WIKI : right here
There is an exemple on the WIKI : right here
If you have a issue, you can create a issue on github.