Do a "git export" (like "svn export")?
git archive --format zip --output /full/path/to/zipfile.zip master Bundle includes git history
| // WARNING - deprecated: | |
| // use this one now: https://gist.github.com/dirkk0/5983271 | |
| // kudos to Frederic Cambus | |
| // http://www.cambus.net/setting-up-a-node-js-development-environment-with-npm-and-cloud9-ide-installed-locally/ | |
| apt-get install build-essential g++ libssl-dev curl git | |
| apt-get install libxml2-dev |
| sudo apt-get update | |
| # get ec2 ip and hostname | |
| sudo apt-get install -y build-essential g++ libssl-dev apache2-utils git libxml2-dev screen | |
| #install node | |
| git clone https://github.com/joyent/node.git | |
| # git checkout v0.10.13 did work once, but I couldn't work again, so I fell back to 0.8 | |
| #compilation takes over 30 minutes on a t1.micro |
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and PHP-FPM | |
| sudo yum install -y nginx php-fpm | |
| # Install PHP extensions | |
| sudo yum install -y php-devel php-mysql php-pdo \ | |
| php-pear php-mbstring php-cli php-odbc \ |
| #user nobody; | |
| #Defines which Linux system user will own and run the Nginx server | |
| worker_processes 1; | |
| #Referes to single threaded process. Generally set to be equal to the number of CPUs or cores. | |
| #error_log logs/error.log; #error_log logs/error.log notice; | |
| #Specifies the file where server logs. |
Do a "git export" (like "svn export")?
git archive --format zip --output /full/path/to/zipfile.zip master Bundle includes git history
| <?php | |
| // server | |
| class MySoapServer | |
| { | |
| public function getMessage() | |
| { | |
| return 'Hello,World!'; | |
| } | |
| <?php | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity() | |
| * @ORM\Table(name="user") | |
| */ | |
| class User |
| add_filter( 'woocommerce_order_number', 'webendev_woocommerce_order_number', 1, 2 ); | |
| /** | |
| * Add Prefix to WooCommerce Order Number | |
| * | |
| */ | |
| function webendev_woocommerce_order_number( $oldnumber, $order ) { | |
| return 'WE' . $order->id; | |
| } |