Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.36 KB

install.md

File metadata and controls

44 lines (29 loc) · 1.36 KB

Installing larapress

Warning: These instructions are for the production build

You might want to have a look at CONTRIBUTING.md if you want to run the development build.

Make sure you have installed composer. If you need help with that visit the projects website.

Run following commands from the project root in your terminal:

composer create --no-dev larapress-cms/larapress my-project-name
chmod -R 777 app/storage
  1. Duplicate the file .env.example.php and name it .env.php
  2. Apply your configuration in .env.php
  3. If you want to use MySQL you'll also need to change the default database connection in app/config/database.php

You can also use environment variables instead of the .env.php file in production for example.

Example for using MySQL

// app/config/database.php

/*
 * Change following line like shown below this comment block:
 * 'default' => 'sqlite',
 */

'default' => 'mysql',

Finally install larapress from the project root in your terminal:

php artisan larapress:install

Further instructions will be printed by the terminal.

Warning:
Per default larapress is configured to run without SSL. This puts the application under high risk and should be changed if possible. Have a look at app/config/larapress.php to change this and other behaviours of larapress.