GithubHelp home page GithubHelp logo

mahaddareshani / godot-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from godotengine/godot-website

0.0 0.0 0.0 20.38 MB

Theme and plugins used in Godot Engine's OctoberCMS instance

License: MIT License

JavaScript 1.25% CSS 13.68% HTML 83.98% Shell 0.51% Dockerfile 0.58%

godot-website's Introduction

Godot Website

This repository contains the theme and plugins used in Godot Engine's October instance.

Development

Browser support

When working on new features, keep in mind this website only supports evergreen browsers:

  • Chrome (latest version and N-1 version)
  • Edge (latest version and N-1 version)
  • Firefox (latest version, N-1 version, and latest ESR version)
  • Opera (latest version and N-1 version)
  • Safari (latest version and N-1 version)

Internet Explorer isn't supported.

Dependencies

  • Docker
    • It's also possible to install PHP 7.2+, MySQL and October manually, but this isn't covered in this README.

Running the site

  • Clone this repository.
  • Put a database dump (if you have one) into the /docker/mariadb/init folder.
    • Make sure that your script starts with the line USE october; and that the file extension is .sql.
  • Run the ./docker/restart.sh script (this will take a while the first time).
  • You might need to reinstall some plugins /docker/php/install-plugin.sh author.name.
    • Replace author.name with the names in the /plugins/[author]/[name] folders.
  • See the website at http://localhost:8080.

Restoring a database

mv /your/dump/backup-file.sql docker/mariadb/init
docker/mariadb/bash.sh
cd /docker-entrypoint-initdb.d/
mysql < 000-setup.sql
mysql < backup-file.sql

Interfacing with the Docker containers

You can use the standard docker exec -it godotengine-org--[php|mariadb] [command] syntax or the following scripts:

  • ./docker/php/bash.sh
  • ./docker/php/install-plugin.sh
  • ./docker/php/log.sh
  • ./docker/mariadb/bash.sh
  • ./docker/mariadb/log.sh
  • ./docker/mariadb/mysql.sh

Setting up the theme

  • Log into the October backend (located at /backend) and change the frontend theme from the Settings tab.
    • Alternatively, you can edit config/cms.php and change the theme to godotengine there.
  • Change directory into plugins/paulvonzimmerman/patreon then run composer install.
  • You should now have approximately what's in production. The only missing pieces are everything that's stored in the production database (blog entries).

Deploying your changes

Deploying is of course only possible for people who have access to our production server. Most contributors should submit a pull request instead.

  • Install Node.js and npm.
  • Copy example_conf.json: cp example_conf.json conf.json.
  • Fill out your credentials in conf.json.
  • Run npm install then npm run deploy.

This will copy all the compiled assets from the godotengine/assets/packed directory to the corresponding directory on production. It'll also make sure that copied assets are still writable by the group on the server. Make sure you've thoroughly tested your changes on your local copy before running this.

Syntax highlighting

If you use Visual Studio Code, you can install the OctoberCMS Template Language extension to benefit from syntax highlighting in .htm templates.

Resources

godot-website's People

Contributors

akien-mga avatar calinou avatar pcvonz avatar djrm avatar dependabot[bot] avatar jcs224 avatar yurisizov avatar hpvb avatar mhillier98 avatar roquef avatar laffertydev avatar xndcn avatar wingedadventurer avatar name-here avatar merumelu avatar mdakhlaqhossain avatar xsellier avatar brainsick avatar timoschwarzer avatar le-michael avatar kzerot avatar luraktinus avatar hhuseyincihangir avatar agar3s avatar evanandrewrose avatar ddl-blue avatar bastiaanolij 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.