Installation
Getting started with Firepit CMS
Installation
[1] Installing the package requires to add these fields to your composer.json:
[2] Then require it:
[3] could be either a version number, or dev-master
to always grab latest.
[4] Run composer update (On windows you need to add -–ignore-platform-reqs ext-pcntl
, because this extension is not available on windows)
[5] Run php artisan cms:install
Installation Development Environment
There are two approaches to set up the development environment:
Option 1: Using Git Submodules (Recommended)
This approach allows you to maintain separate Git repositories while keeping them connected:
- From your Laravel project root, initialize the submodule:
- Initialize and update the submodule:
- Add to composer.json:
-
Run
composer update
-
Extend your user model from the Firepit User model:
Working with the submodule:
- To update the submodule to latest:
git submodule update --remote
- To commit changes in the submodule:
- Don’t forget to commit the submodule reference in your main project:
Option 2: Simple Clone (For Quick Testing)
- Run the following commands from Laravel project root:
- Follow steps 3 and 4 from Option 1.
Note: This method doesn’t maintain the connection between repositories. Use Option 1 (Git Submodules) for proper version control.
Production
Initiate the submodule:
git submodule set-url packages/firepit-cms git@github.com:WebBuildsNL/firepit-cms.git
Deploy script: