-
Install Git for Windows – download and install msysGit from official Git site : http://git-scm.com/download/win
-
Install Ruby – download and install Rubyinstall for Windows : http://rubyinstaller.org/downloads/
-
Install Capifony – open a Windows command prompt with Ruby – install Capifony with this command :
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
| set :application, "My App" | |
| set :domain, "domain.com" | |
| set :deploy_to, "/home/domain/www" | |
| set :app_path, "app" | |
| set :user, "deploy" | |
| set :use_sudo, false | |
| # default_run_options[:pty] = true | |
| set :repository, "[email protected]:project" |
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 | |
| class DefaultController extends Controller | |
| { | |
| /** | |
| * Dashboard page. | |
| * @Permissions(perm="dashboard_view") | |
| * @Route("/", name="ITEDashboardBundle_index") | |
| * @Template() | |
| * @return array |
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
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| browserify = require('gulp-browserify'), | |
| concat = require('gulp-concat'), | |
| embedlr = require('gulp-embedlr'), | |
| livereload = require('gulp-livereload'), | |
| express = require('express'), | |
| livereloadport = 35729, | |
| serverport = 5000; | |
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
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var sass = require('gulp-sass'); | |
| var lr = require('tiny-lr'); | |
| var http = require('http'); | |
| var path = require('path'); | |
| var ecstatic = require('ecstatic'); | |
| var tlr = lr(); | |
| var livereload = function (evt, filepath) { | |
| tlr.changed({ |
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 | |
| namespace HelloWorld; | |
| use InvalidArgumentException; | |
| /** | |
| * This class is somewhere in your library | |
| * @Entity | |
| * @Table(name="users") | |
| */ |
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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: <NAME> | |
| # Required-Start: $local_fs $network $named $time $syslog | |
| # Required-Stop: $local_fs $network $named $time $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: <DESCRIPTION> | |
| ### END INIT INFO | |
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
| 'use strict'; | |
| // A decorator to override uiSref to trigger state change on touchstart if the element does not have disable-fastclick attribute | |
| // It also logs the time between state changes | |
| angular.module('app') | |
| .config(function ($provide) { | |
| $provide.decorator('uiSrefDirective', function ($delegate) { | |
| var originalUiSref, originalUiSrefLink; | |
| originalUiSref = $delegate[0]; | |
| originalUiSrefLink = originalUiSref.link; |
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
| #!/bin/sh | |
| #Put this script into <gitProject>/hooks/post-receive on the production server | |
| #Make sure this script has execute permissions (chmod +x post-receive) | |
| #You can create a group (like "git"), make it owner of this file, and add | |
| #every user that needs to push to the that group. | |
| echo 'start repo to prod' | |
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
| server { | |
| server_name YOURDOMAIN; | |
| root /var/www/qa; | |
| access_log /var/log/nginx/YOURDOMAIN.access.log; | |
| error_log /var/log/nginx/YOURDOMAIN.error.log; | |
| # Enable compression, this will help if you have for instance advagg module | |
| # by serving Gzip versions of the files. | |
| gzip_static on; |