Created
December 13, 2012 14:15
-
-
Save simonjodet/4276638 to your computer and use it in GitHub Desktop.
Test for Gumdrop installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)" |
$ ⮀ 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 👍
Thanks!
OMG !!! Your avatar has been GeorgesMichaelized ! ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ubuntu 11.04 / PHP 5.3.15