Coder Social home page Coder Social logo

mandrew / addons.silverstripe.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silverstripe/addons.silverstripe.org

0.0 1.0 0.0 1.07 MB

Website hosting SilverStripe Framework extensions

License: BSD 3-Clause "New" or "Revised" License

ApacheConf 0.84% JavaScript 0.66% HTML 22.86% PHP 16.03% CSS 50.83% Scheme 7.64% Puppet 1.14%

addons.silverstripe.org's Introduction

SilverStripe Add-ons

This is the SilverStripe add-ons listing site project. It aggregates SilverStripe packages from Packagist.

Basic Installation

  • cd public && composer install --no-dev
  • Install and run dependencies (see below)
  • Configure elastic search in mysite/_config/injector.yml
  • Run all tasks to populate database (see below)

Full Installation with VM

While you can set up your dev environment as usual, its likely differing from the production configuration. In order to stay as close as possible to the

IMPORTANT: These instructions currently assume that you have access to resources internal to SilverStripe Ltd. We're working on opening those up.

First off, download and install some dependencies:

Then run through the following shell script:

Get the base Vagrant box (downloads ~500MB)

vagrant box add squeeze http://tools.silverstripe.com/vagrant/squeeze.box sudo chown whoami /Users/whoami/.vagrant.d/insecure_private_key

Install SilverStripe's Puppet Manifests (Private Repo)

git clone ssh://[email protected]:2222/silverstripe-infrastructure/puppet-modules.git puppet (cd puppet && ./checkout)

Create VM (this will take a few minutes to create a new VM)

vagrant up

Now you should be able to browse the website under http://localhost:3000, and access the VM on SSH via vagrant ssh. To shut down the VM again, use vagrant halt.

Dependencies

Elastic Search

Elastic search is used to provide add-on package indexing and searching. If a local installation of elastic search is used, the following configuration can be used in mysite/_config/injector.yml:

Injector:
  SilverStripe\Elastica\ElasticaService:
    constructor:
      - %$Elastica\Client
      - addons

You should run the elastic search reindex task to create the mappings after installation.

Resque

A PHP implementation of resque is used to provide background building of add-ons details. As such an installation of redis must be present. If you wish to use a remote server, you can configure the ResqueService constructor parameters to specify the backend using the injector system (see mysite/_config/injector.yml).

To actually run the background tasks you need to spawn worker processes. On a production server this should be set up using a process monitor such as god. A new worker process can be spawned using the following command in the webroot:

./framework/sake dev/resque/run queue=first_build,update

Tasks

  • sake dev/tasks/UpdateAddonsTask: Runs the add-on updater.
  • sake dev/tasks/UpdateSilverStripeVersionsTask: Updates the available SilverStripe versions.
  • sake dev/tasks/SilverStripe-Elastica-ReindexTask: Defines and refreshes the elastic search index.
  • sake dev/tasks/BuildAddonsTask: Manually build addons, downloading screenshots and a README for display through the website. There's no need to set up a cron job for this task if you're using the resque queue.
  • sake dev/tasks/DeleteRedundantAddonsTask: Deletes addons which haven't been updated from packagist in a specified amount of time, which implies they're no longer available there.

LESS Compilation

The site uses LESS for compiling CSS. One way to compile it is through Grunt, which requires you to install NodeJS first.

npm install -g grunt grunt-cli npm install --save-dev

To compile, run:

grunt less

To watch for file changes, run:

grunt watch

addons.silverstripe.org's People

Contributors

ajshort avatar camfindlay avatar chillu avatar dhensby avatar kmayo-ss avatar mandrew avatar micmania1 avatar ss23 avatar vikas-srivastava 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.