Soushi: Bimodal Site Generator Powered by PHP

Deployment

As already said, Soushi is bimodal. That is, you can choose from two methods to deploy your Web site; static Web site for GitHub Pages and dynamic Web site for Web server (ex. httpd).

Static Web Site

Soushi enables you to easily deploy your Web site to GitHub Pages.

Generating Static Files

Run soushi build to generate static files:

$ ./vendor/bin/soushi build

Files are placed in build/ directory like below:

build/
    └─ main.css
    └─ index.html

Deployment

Run soushi gh-pages command to deploy the site to GitHub Pages.

$ ./vendor/bin/soushi gh-pages

Needless to say, you need to create remote repository on GitHub and track it from your local repository in advance.

Dynamic Web Site

Upload the whole directories (NOT just public/ directory) in which your site is to a Web server via FTP or anything. If the document root of Web server is not set to public/, rename public/ directory to appropriate one before deployment.

For Apache httpd, Soushi generates .htaccess file in public/ directory to handle requests routing to appropriate files.

RewriteEngine On
RewriteBase   /
RewriteRule   ^index\.php$ - [L]
RewriteCond   %{REQUEST_FILENAME} !-f
RewriteCond   %{REQUEST_FILENAME} !-d
RewriteRule   . /index.php [L]