Follow these steps to get a local development environment of Papi Digital up and running.
- Install Vagrant
- Install VirtualBox
- Pull down the repo if you haven't already
- Ask for a local
.env
file as you'll need it for the next steps - Navigate to the project directory using your terminal of choice and execute
vagrant up --provision
- Make sure to update your hosts file with the IP address listed in the
Homestead.yaml
file in the root of the project - Staying in the project directory, execute
vagrant ssh
; you should now be in the terminal of the vagrant server - Execute the following commands in the order they appear
cd code
php72
php artisan october:up
- October CMS should now be installed and ready to go. Take note of the admin password to login to the backend.
- Go to
papidigital.local/thebackdoor
in your browser to login.admin
is the username and the password was generated at the previous step - Navigate to the
Settings
page and change the Front-end Theme to Papi Digital - Go to
Plugins
and make sure that theBlog
plugin is installed. You can search for it by typingBlog
and selectingBlog by RainLab
- Check that the site is working by going to
papidigital.local
- If you want to automatically track changes to your SASS files, check the instructions below.
- To shut down the virtual machine started by vagrant, you can execute
vagrant halt
in the root directory of the project. - If you'd like to start the server back up, execute
vagrant up
in the root directory of the project
The theme lives in /themes/papidigital
. It's using custom layouts for the blog, and carries some static assets with it for some of the pages.
The project is deployed to cloudways.com.
It is setup to utilize Cloudways' Git integration. This works using a pull-based system that is not automatic. You can find the controls for this here.
This project uses environments, and is configured using a .env
file
that should always be left out of the git repository.
If changes are needed, you can refer to the .env
already in production.
- To properly deploy, make sure to commit/merge your changes to the
master
branch - Use the "Pull" button in Cloudways to finish the deployment
- Run
npm update
andyarn install
for any node dependencies - Run
composer install
for any composer depedency changes
This project uses npm
to compile SCSS files to CSS and watch changes.
To use this functionality, run npm run dev
in the terminal.
Check the package.json
file for more configuration.
To learn how to configure this theme, check the official OctoberCMS documentation.
OctoberCMS uses Twig for templating. Visit the official Twig documentation for more info.