Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Deleting a bunch of obsolete content.


 

Spinning Up Sites

We are now set up for domination with Pantheon One. Take heed of the new differences:

  1. Create a site within the Kalamuna organization
  2. URLS will now be suffixed in the following form *.at.kalamuna.com as opposed to *.getpantheon.comCurrently use Panopoly as your starting distribution and upstream.
    In the future, we'll use HotSauce! as our start state. This is linked to our new canonical upstream: https://github.com/kalamuna/drops-7 which is basically just an out-of-date Panopoly plus Kalatheme 3.x at this point. Eventually this will turn into a magical distro.

 

Useful Tips

Contributing to Pantheon One upstream repos

Hotsauce

  1. If you have a patch that you think should be rolled in: OPEN AN ISSUE HERE https://drupal.org/project/hotsauce
  2. If you have a feature/app that you think should be rolled in: OPEN AN ISSUE HERE https://drupal.org/project/hotsauce
  3. If you have a contrib module that you think should be rolled in: OPEN AN ISSUE HERE https://drupal.org/project/hotsauce

 

Shallow clones

We're not talking about Jango Fett's performance. git shallow clones allow application servers and developers to avoid pulling the full history.

Here's how you can try it:

 

  1. Install git 1.9 or later. Check with git --version
  2. When you clone, add the --depth=1 option: git clone --depth=1 <repository>
  3. Everything else about your workflow shouldn't change at all as long as you don't need older history.

Cloning the repository for getpantheon.com (a normal Panopoly/Drupal 7 site) normally takes 2.5 minutes and 62 MiB. A shallow clone takes 1 minute and 29 MiB.

 

Syncing Remotes

It is recommended to have both the Pantheon and GitHub remotes set up in your development environment. The origin remote should point to the GitHub repository.

If you already have the repository set-up with Pantheon then you need to simply change the origin remote url to GitHub. This is probably the case if you are using drush pullsite to get your Kalabox environment set-up.

 

git remote set-url origin git@github.com:kalamuna/my-repo.git

 

If you are setting up a new repository, then you should simply clone the GitHub repository the normal way.

 

git clone git@github.com:kalamuna/my-repo.git greenbiz

 

After you have your origin remote pointing to the GitHub repository, you need to add a new remote called pantheon that points to the pantheon git repository:

 

git remote add pantheon ssh://codeserver.dev.XXXXXXXXXX@codeserver.dev.XXXXXXXXXX.drush.in:2222/~/repository.git

 

With this done you're ready for any git challenges. Use

git pull pantheon master

to bring in changes from Pantheon.

git pull github master

to bring in changes from GitHub. Use

git push pantheon master

to push those changes up.

Resources

...