Giter Club home page Giter Club logo

clone-guide-web's Introduction

Craft Starter Template

  1. Create a new repo based on this template
  2. Run composer project-setup

Requirements

  • PHP, composer, node, MySQL/MariaDB
  • Redis is used for the Craft cache and Sessions โ†’ if Redis is unavailable, comment out the according config in config/app.php and config/app.web.php

Setup

Store licences in .env

After launching Craft, a config/license.key is generated. Copy the content of the file to the CRAFT_LICENSE_KEY in .env and delete config/license.key. Finally, uncomment the following line in bootstrap.php:

define('CRAFT_LICENSE_KEY', getenv('CRAFT_LICENSE_KEY'));

In order to move plugin licences from the project config to the .env file, copy the licence to a .env key and set the key as plugin licence, eg. $PLUGIN_IMAGERX_LICENSE_KEY.

Choose swup or htmx/Sprig

Search for either swup or htmx and hx- in the code (and in package.json) and remove the code for the library you're not using.

Image Transforms

Imager X is used to generate image transforms. IMAGER_TRANSFORMER may be set to either craft, imgix or imageboss.

If you want to obfuscate the location of your assets (eg. when using imgix or imageboss as web proxy), set the @imagerBaseUrl and @imagerBasePath in config/general.php and use them in the filesystem settings.

Deployment

tbd.

After the first deployment, run:

composer install
composer storage:link
php craft setup

Fix issues with applying the craft config during deployment:

php craft project-config/rebuild
git reset --hard
php craft project-config/apply

clone-guide-web's People

Contributors

znezniv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.