Skip to content

lr-agenceweb/static-starter

Repository files navigation

Static starter Dependency Status devDependency Status

Deposit containing a base for development of static website (frontend).

Requirements

Install NodeJS
Install Composer

Usage

Clone it: git clone [email protected]:lr-agenceweb/static-starter.git
Go to the application folder: cd static-starter
Install node modules: npm install
Install php packages: composer install
Install capistrano: bundle install (Optional if you don't need to deploy)
Run gulp
Visit http://localhost:8080
That's it !

Stack

Sass as css preprocessor
Coffeescript as javascript preprocessor
Foundation 6 as frontend framework

Deploy

Capistrano is configured as deployment tool. Both staging and production environment are available.
To start deployment, duplicate capistrano.example.yml and rename it to capistrano.yml.
Then, set informations about your VPS and your application.
You are now ready to deploy !

  • Uploads

    • cap <env> upload:config : Upload .yml and .php configuration files
    • cap <env> upload:dkim : Upload DKIM private key
    • cap <env> upload:htpasswd : Upload htpasswd file for staging environment (nginx friendly)
    • cap <env> upload:all : Execute all previous commands in one task
  • Nginx

    • cap <env> nginx:upload:vhost : Upload vhost config file to remote server (create file in conf.d)
    • cap <env> nginx:upload:symlink : Symlink uploaded folder path to /var/www//
    • cap <env> nginx:vhost:disable : Disable vhost (rename extension to .disabled)
    • cap <env> nginx:vhost:enable : Enable vhost (rename extension to .conf)
    • cap <env> nginx:vhost:remove : Remove uploaded vhost to conf.d folder

Thanks

  • A big thanks to Grafikart from where this boilerplate starter come from
  • karlingen for the I18N php class