User login

Agaric internal: Steps to quickly create and deploy a site

Full steps to take a new site live:

Create a project in git:;a=blob;;hb=HEAD

Start a MayFirst project.

MayFirst login:
Member area:
Add a new member:

primary server: sojourner

Next, create a database for this hosting order. We customarily use the project name, e.g. example.

Then create a database user and give it full access to the database above. Again, we customarily use the project name, e.g., example. Save the password you create for this database user.

Make sure you have an etc/live.settings.php; you can copy etc/test.settings.php or web/sites/default/default.settings.php or run drake build_live to create one. Copying the test settings is easiest, then edit it:

cp etc/test.settings.php etc/live.settings.php
vi etc/live.settings.php

Edit the database user that is automatically created so that you can create a new randomly generated password, and commit it to your etc/live.settings.php so the database definition part looks something like this:

['default']['default'] = array(
'driver' => 'mysql',
'database' => 'example',
'username' => 'example',
'password' => '82j2H5rReB',
'host' => 'localhost',
'prefix' => '',

Don't forget to git add etc/live.settings.php and git commit it.

Now we're ready to follow Deploying the Agaric Way:

drake tag_stable
drake upload_live

Warning: This is done only the first time, but presuming you've got some content you want on the test site, move the test database to the live server with the drake db_sync_test_to_live command and move the files from the test server to the live server with the drake file_sync_test_to_live command. Again, don't use these commands after the initial launch.

Once you've checked out the site at its temporary URL, e.g., and everything looks OK...

Configure its domain to point to and nameservers.

Searched words: 
mayfirst create site account database db users


Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.