Skip to the content
Documentation

Uploading a Exponential site to the cloud: comparison of ...

No ratings yet

Versions Compared

Old Version 12

changes.mady.by.user Vidar Langseid

Saved on Aug 14, 2013

compared with

New Version Current

changes.mady.by.user Vidar Langseid

Saved on Nov 27, 2013

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Comment: Migrated to Confluence 5.3

...

In order to upload a Exponential to the cloud, these conditions needs to be met:

  • Make sure you comply with the Exponential Cloud Whitelist
  • You need a work installation of Exponential running locally
  • You need access to the cloud administration interface: http://admin.cloud.ez.no
  • Your account needs to have a SSH key associated with your account
  • Basic knowledge about SSH, Git and SFTP
  • A Git and SFTP client installed locally

For the examples below, we assume you are on a unix based system with Git, openssh's SFTP client, mysqldump and rsync installed

How to check that you have a SSH key

...

  1. Log in to http://admin.cloud.ez.no
  2. The frontpage will show you the list of environments you have access to
  3. Click on the environment you want to inspect
  4. Click the "Manage Users" button ((Maik: not all users have this button, just "OWNER". All users might go to login.ez.no and find their key, if it was uploaded, in the corresponding field in their profile))
  5. Your user should then be listed, including information about your SSH key

...

  1. Log in to http://share.ez.no
  2. Edit your profile on : http://share.ez.no/community/profile
  3. Click on "Edit account" button (do not confuse this with the "Edit profile" button !!! button)
  4. Cut and paste in your public SSH in the "Public key (openSSH format only" field )
    The format of the key should look like:
    ssh-rsa ABC......= [email protected]
  5. Save your changes
  6. Log out of http://admin.cloud.ez.no (if you where logged in)
  7. Log in again on http://admin.cloud.ez.no
  8. Follow the steps explained in the "How to check that you have a SSH key" chapter

...

  • you have your Exponential site locally in /var/www/mysite.com
  • your git repository is located at mysite@gitat [email protected]:ez.git

Clone the Git repository

You can clone the Git repository by running the following:

No Format
$cd ~

...

$git clone [email protected]:ez.git

...

mysite

Copy your Exponential site to the Git directory (except the var/ directory):

No Format
$rsync -av --filter="+ /.htaccess*" --filter="- .**" --filter "- /var" /var/www/mysite.com/ ~/mysite/

 

Push your code to git

No Format
$cd ~/mysite

...

$git add .

...

$git commit

...

$git push origin master

 

Tag the code in Git

No Format
$cd ~/mysite

...

$git tag mysite-v1.0

...

$git push origin mysite-v1.0

 

Upload your database and var/ directory via SFTP

...

Use mysqldump to create a dump like this:

No Format
$cd /tmp

...

$mysqldump -u [username ]-p [database] > mysite-v1.0.sql

( replace username and database name according to your system )

Upload the DB to SFTP

No Format
cd /tmp

...

$sftp -

...

P [portno]

...

[username]@hostname

...

SFTP> cd db

...

SFTP> put mysite-v1.0.sql

...

SFTP> exit

...

$rm /tmp/mysite-v1.0.sql

 

Make the var/ dump

...

No Format
$cd /var/www/mysite.com/var

...

$tar -czf /tmp/mysite-v1.0.tar.gz

...

ezwebin_site storage

 

The example above assumes your vardir is named "ezwebin_site". It might be called something else on your system

Upload the var dump to SFTP

No Format
$cd /tmp

...

$sftp -P [portno] [username]@hostname

...

SFTP> cd var

...

SFTP> put mysite-v1.0.tar.gz

...

SFTP> exit

...

$rm mysite-v1.0.tar.gz

 

Stage your installation

  1. Log in to http://admin.cloud.ez.no
  2. The frontpage will show you the list of environments you have access to
  3. Click on the environment you want to stage
  4. Click the "Edit" button

...

  1. Click "New Deployment" link
  2. Provide a "Deployment name" and check the git tag "mysite-v1.0"
  3. Click "Next step" button

...

  1. Click the checkbox "I would like to create a new database from the database dump and import the corresponding files."
  2. Click the checkbox "mysite-v1.0.sql"
  3. Click the checkbox "mysite-v1.0.tar.gz"
  4. Click "Next Step" button

...

Comments

Add a comment

Comments are read by a moderator before they appear.