Skip to content

Instantly share code, notes, and snippets.

View iammahmudur's full-sized avatar

Md Mahmudur Rahman iammahmudur

View GitHub Profile
@oodavid
oodavid / README.md
Last active April 6, 2024 18:45 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@franz-josef-kaiser
franz-josef-kaiser / wp_config.php
Created March 7, 2011 21:48
Example from wp_config.php (wordpress config file) that shows different environments
/**
* Production, Staging, Live
*/
define( 'OXO_LOCAL_A', '/wordpress/' );
define( 'OXO_STAGE', 'some-stage.domain.com' );
if ( substr($_SERVER['REQUEST_URI'], 0, 11) == OXO_LOCAL_A )
{
// DB
define( 'DB_NAME', 'wordpress' );