Create New Site Procedure
UPDATE: Completely superseded by http://data.agaric.com/agaric-move-site-from-test-production-first-time-steps
NOTE: This information is specific to the Agaric's server set-up.
To create a new project newproject
with site example.com
Create database by going to phpMyAdmin Privileges and Add a new User.
Name the user newproject_live
(or newproject_test
if starting with a test site)
Click "Generate" to make the password, and "Copy" to move it into the two fields, but first or immediately thereafter copy (e.g. with Control-C) that password into your clipboard and save it somewhere, you'll need it later!
(If you forget to get the password before submitting the page, you can change the password later.)
Under "Database for user" select "Create database with same name and grant all privileges".
Scroll down and click "Go".
Log into the server via SSH:
su root
addsite newproject example.com
If the domain name is already pointed to the server's nameservers, just go there and put your database info from the previous
Pick a reasonable domain and give it a subdomain like example or just reuse temporary:
ln -s example.com temporary.agaricdesign.com
on the admin/settings Site Information page, use this for the files directory:
sites/example.com/files
Take a working site from live to test, or vice versa
This is for taking a site from live to test:
We are here:
server:/srv/drupal-5/test-sites#
Type:
svn checkout https://66.135.41.18/svn/drupal/sbkenney/trunk/jandsproperties.net jandsproperties.net
now, copy in the files and settings.php (changing the settings.php to a different database, preferably)
cd /srv/drupal-5/live-sites/jandsproperties.net/
cp -pr files ../../test-sites/jandsproperties.net/
cp -p settings.php ../../test-sites/jandsproperties.net/
After updating modules
co https://66.135.41.18/svn/drupal/vendor/drupal-contrib/modules /srv/drupal-5/test-modules/
(how do you include the username in this command? I haven't been able to find that.)
Once it's checked out, we can just go to
cd /srv/drupal-5/test-modules
svn update
Can you do svn update /path/to/directory ?
Comments
Post new comment