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: https://agariclabs.net/gitweb?p=agaric/scripts.git;a=blob;f=agc.sh;hb=HEAD

Start a MayFirst project.

MayFirst login: https://members.mayfirst.org/cp/
Member area: https://members.mayfirst.org/cp/index.php?area=member
Add a new member: https://members.mayfirst.org/cp/index.php?area=member&member_id=458&action=new

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:

<?php
$databases
['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. example.mayfirst.org, and everything looks OK...

Configure its domain to point to a.ns.mayfirst.org and b.ns.mayfirst.org nameservers.

Searched words: 
mayfirst create site account database db users

Comments

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>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

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