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
| The php_curl.dll file that came with WampServer 2.2 distribution does not work on 64bit systems. You can download a working php_curl.dll file (php_curl-5.3.13-VC9-x64.zip) from http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ | |
| 1. Setup wamp. | |
| 2. From wamp icon select PHP > PHP extensions > php_curl (it needs to be checked) | |
| 3. Extract php_curl.dll from the zip and copy it to PHP extension directory (mine is c:\wamp\bin\php\php5.3.13\ext) | |
| 4. Restart all services from the wamp menu | |
| 5. Go to localhost and click phpinfo() link and see that curl is there… |
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
| Video on this Gist: https://www.youtube.com/watch?v=zvpLDuRY4ss&feature=c4-overview&list=UUj8_147vA3FQ1quI_CjciIQ | |
| #Initialize a bare repo on the webserver. This would preferably be outside of your public website dir but if you are on a shared host you may not have that option. I like to make a folder just outside of the live folder called git. So for me it would look like this… | |
| $ cd /var/www | |
| $ mkdir git && cd git | |
| $ git init –-bare | |
| #Now you need to create a post-receive hook that will check out the latest tree from the Git repo you just setup into the /var/www/html folder where you want your website to be. You can make this whatever folder you want your code to end up in. | |
| #This will create a file called post-receive in the hooks dir of the git repo. |
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
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| compass: { | |
| dist: { | |
| options: { | |
| sassDir: 'sass', | |
| cssDir: 'css', | |
| environment: 'production' | |
| } |
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
| #For wordpress theme dev. | |
| #Ignore everything except for the gitignore file and the themes directories: | |
| * | |
| !.gitignore | |
| !wp-content/ | |
| !wp-content/themes/ | |
| !wp-content/themes/*/ | |
| !wp-content/themes/*/* | |
| !wp-content/themes/*/*/* | |
| !wp-content/themes/*/*/*/* |
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
| #Pre-commit hook | |
| #!/bin/sh | |
| mysqldump -uuser -ppassword --skip-extended-insert databaseName > /path/to/your/repo/database.sql | |
| cd /path/to/your/repo | |
| git add [database].sql | |
| #Post-merge hook | |
| #!/bin/sh | |
| mysql -u [mysql user] -p[mysql password] [database] < /path/to/your/repo/[database].sql | |
NewerOlder