Skip to content

Latest commit

 

History

History
executable file
·
69 lines (43 loc) · 989 Bytes

README.md

File metadata and controls

executable file
·
69 lines (43 loc) · 989 Bytes

Rishi Satsangi's website

A Slim PHP based website with Backbone.js and Twig thrown in

initialize

composer install required composer libs for the build script to function:

    curl -sS https://getcomposer.org/installer | php
    php composer.phar install

copy .env from .env.shadow and edit values

cp .env.shadow .#!/usr/bin/env
vim .env

build help

php build.php --help

displays help:

--cache/--cache
     Clear cache and reset permissions of cache directory


--configs/--configs
     Publish configs from .env


--help
     Show the help page for this command.


--js/--javascript
     Broswerify and minify the js


--npm/--npm
     Install node modules from package.json


--php/--php
     PHP/Composer install


--ugly/--uglify
     Uglify the compiled js (leave empty in dev)

build

build production:

php build.php -cache -configs -js -npm -php -ugly

build dev js:

php build.php -js