Deposit containing a base for development of static website (frontend).
Install NodeJS
Install Composer
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 !
Sass as css preprocessor
Coffeescript as javascript preprocessor
Foundation 6 as frontend framework
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 filescap <env> upload:dkim: Upload DKIM private keycap <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