Skip to content

Instantly share code, notes, and snippets.

@simonjodet
Created December 13, 2012 14:15
Show Gist options
  • Save simonjodet/4276638 to your computer and use it in GitHub Desktop.
Save simonjodet/4276638 to your computer and use it in GitHub Desktop.
Test for Gumdrop installer
# PHP 5.3+ (CLI) required. Should work with stock PHP on Mac OS 10.8.
cd /tmp
php -r "$(curl -s https://raw.github.com/simonjodet/gumdrop/develop/installer.php|tail -n +2)"
@jubianchi
Copy link

$ ⮀ php -r "$(curl -s https://raw.github.com/simonjodet/gumdrop/develop/installer.php|tail -n +2)"
Please enter the name of your new Gumdrop-based project:
lol

-> Creating project folder
-> Downloading Composer
-> Adding minimal configuration files
-> Installing dependencies

Installation successful!
Your project has been created in the "lol" folder.

You can now add some markdown files into it and run _vendor/bin/gumdrop to generate your site in the "lol/_site/" folder.

Example:
    $ cd lol
    $ echo "# My new website" > index.md
    $ _vendor/bin/gumdrop

You should now have a _site/index.htm file containing "<h1>My new website</h1>":
    $ cat _site/index.htm
    <h1>My new website</h1>

You can now run Gumdrop with its built-in webserver and change watcher:
    $ _vendor/bin/gumdrop -rw

Your site is available at http://localhost:8000/index.htm.
Any change in the "lol" folder will trigger an update in the "lol/_site" folder. Just refresh your browser to check the changes you've made.

Visit http://simonjodet.github.com/gumdrop/ for more information.

 $ ⮀ tree -L 2 lol
lol
├── composer.json
├── composer.lock
├── composer.phar
├── conf.json
└── _vendor
    ├── autoload.php
    ├── bin
    ├── composer
    ├── simonjodet
    └── symfony

Nice 👍

@simonjodet
Copy link
Author

Thanks!

@usul
Copy link

usul commented Dec 14, 2012

OMG !!! Your avatar has been GeorgesMichaelized ! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment