Skip to content

Instantly share code, notes, and snippets.

@kae76
Last active December 29, 2015 13:49
Show Gist options
  • Save kae76/7679633 to your computer and use it in GitHub Desktop.
Save kae76/7679633 to your computer and use it in GitHub Desktop.

[distro name] = replace with project name, e.g. openatrium would give you http://git.drupal.org/project/openatrium.git
[platform name] = replace with desired platform name based on [distro name] should not have any empty spaces
[Omega8 UID] = replace with user ID provided by Omega8.css (you will find this in the first part of your Ægir url o123456789.vXX.location.hostX.biz)

Download and build the distribution (via command line)

  1. ssh [Omega8 UID].ftp@[Omega8 UID].hostname
  2. cd ~
  3. mkdir tmp if doesn't already exist
  4. cd tmp
  5. git clone --branch 7.x-1.x http://git.drupal.org/project/[distro name].git
  1. cd [distro name]
  2. drush make build-[distro name].make ~/static/[platform name]
  3. chmod 775 ~/static/[platform name]
  4. chmod 775 ~/static/[platform name]/sites

Upload via SFTP (Alternative to Command Line method)

  1. open folder containing Drupal site [platform name] you wish to import
  2. move any themes/modules in sites/default to sites/all
  3. delete the sites/default folder
  4. connect to sftp://[email protected]/ (Open Cyberduck and select Omega8.cc)
  5. open the static folder
  6. paste [platform name] into static folder
  7. chmod 775 ~/static/[platform name]
  8. chmod 775 ~/static/[platform name]/sites

Create the platform in the Ægir interface

  1. go to /node/add/platform
  2. in Platform Name: field enter [platform name]
  • check that Path: /data/disk/[Omega8 UID]/static/[platform name] points to what you defined in item 7 above.
  • Otherwise select Edit and amend as necessary
  1. Do not put anything in Platform Makefile: field
  2. Choose which users (other than yourself) you want to be able to create sites using the platform you've just created, under Platform access controls:

Use the ~/static directory to host your custom platforms.

You can create them by traditional upload via

  • FTP
  • SFTP or
  • rsync over SSH
  • command line with drush make my-makefile ~/static/foo-bar
  • with makefile (local or remote) via your Aegir control panel.

We highly recommend to use the command line method, to avoid issues with permissions and to make debugging easier without adding ghost platforms nodes in Aegir for failed builds – just add -d flag at the end of drush make command.

Now, the only thing you should remember about is to set group writable permissions for platform’s root directory and its “sites” subdirectory, so something like: chmod 775 ~/static/foo-bar and chmod -R 775 ~/static/foo-bar/sites.
You must set this chmod before adding the platform in the Aegir interface, or it will yell with errors or cause warnings later.

Please make sure you have read the inline help in your Aegir control panel at /node /add /platform, to not confuse “Platform Path” with “Platform Makefile”.

source: https://omega8.cc/import-your-sites-to-aegir-in-8-easy-steps-109

@kae76
Copy link
Author

kae76 commented Nov 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment