GithubHelp home page GithubHelp logo

martinglover / site-build Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 505 KB

Build multiiple platforms/frameworks from one command

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

Shell 0.83% JavaScript 57.42% Perl 0.02% PHP 4.74% CSS 36.63% Scheme 0.35%

site-build's Introduction

Site Build

Site Build allows you to build a site on any platform/framework that has been configured from a single command.

Install

Simply clone this repo and create a symlink in your local bin directory to the bootsb.sh file.

sudo ln -s /{site-build-dir}/setup.sh /usr/local/bin/{command}

Where {site-build-dir} is the path to the Site Build directory and {command} can be as a command of your choice, recommended use sbuild as it has few if any clashing services.

Running

Site Build accepts three parameters, {platform}, {webserver}, {debug} and {sitename}.

sbuild -p {platform} -s {webserver} -d {sitename}

Defaults

-p blank

-s apache

-d false

{sitename} (required) is always required as the last parameter.

{platform} (default = blank) defines the plaform to be built, current options are: blank, ghost, magento, silverstripe, wordpress

{webserver} (default = apache) defines the webserver that site build is configured to. Options: apache, nginx

{debug} (default = false) defines if a build is created from an git archive (false) or rsync (true) this allows testing of buidl settings without the need to commit changes

Options

-p (platform)

sbuild -p {platform} {sitename}

This defines the plaform to be built, current options are:

  • blank
  • ghost
  • magento
  • octo
  • silverstripe
  • wordpress
  • zf2

-s (webserver)

sbuild -s {webserver} {sitename}

This defines the webserver that is configured:

  • apache
  • nginx

-d (debug)

sbuild -d {sitename}

This defines if a build is created from an git archive or rsync.

If -d is defined performs an rsync, This removes the need to commit the changes you have made. If -d is ** not ** set this performs a git archive copy. This will create a duplicate of the setup but without any repo history.

site-build's People

Contributors

martinglover avatar phpboyscout avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

zucchi

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.