Skip to content

This deploy script will build your HTML5 / PHP based project with yeoman, then deploy to a VPS.

Notifications You must be signed in to change notification settings

KingScooty/html5-deploy-via-capistrano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

#Deploy html5 and php sites via Capistrano

This project requires the user to have root access to their server (VPS) and to have already setup Apache/nginx on it. It also requires yeoman.io to be installed, as the build process is delegated.

##Setting up

  1. Run the following from the terminal:
gem install capistrano ;
gem install railsless-deploy
  1. Download this project to your root folder (ensure config folder and Capfile are in the project root).
  2. Open config/deploy.rb
  3. Change line 3 set :application, "website.com" to whatever the app is called
  4. Change line 10 set :domain, "xxx.xxx.xxx.xxx" to the IP of your VPS.

You will require an SSH key to have been setup prior to continuing

  1. This script deploys to "/home/www/#{application}/html" by default*

A production folder and staging folder will be created in this deploy dir to enable a staging domain for testing, and a production domain for production ready code. Please ensure your VPS is configured, and hosts file matches deploy locations.

##Deploying

###Default behaviour Run capistrano deploy or capistrano staging deploy to deploy. Capistrano will build the project using yeoman, and then deploy to staging by default.

###Production You can overwrite the default behaviour by typing capistrano production deploy, which will build, then deploy to production.

About

This deploy script will build your HTML5 / PHP based project with yeoman, then deploy to a VPS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages