The development server is capdev.library.cornell.edu (aka sfaka sf-lib-web-006.serverfarm.cornell.edu). Each developer maintains a site, \ [netid\].capdev.library.cornell.edu, on capdev. Look in /libweb/sites/ for your site.Wiki Markup
Prepare the site for deployment
...
Prepare a new site on the dev machine
Make a git repo for the site on git.library.cornell.edu. Use the test site name, e.g. seadina.test.library.cornell.edu.
Run the script to create the initial site directory.
| Code Block |
|---|
cd my_cap_dev_area
setup_cap_dev_site.sh seadina_test_library_cornell_edu.git
|
Create the database, make a symbolic link from htdocs to the public directory (where Drupal is), install Drupal.
Then add everything to git, commit, and push.
Prepare a new site on a remote machine
| Code Block |
|---|
cd mysite cap staging deploy:setup cap staging drupal:site_setup_permissions cap staging drupal:install -s db=databasename -s dbu=databaseuser -s dbpw=databasepassword \ -s d_user=Drupal_user#1 -s d_pw=Drupal_user#1_password -s d_email=Drupal_user#1_email |
...
| Code Block |
|---|
cd mysite
cap -T
|
Enable passwordless login to remote machines
| Code Block |
|---|
drush dl drush_extras
drush pushkey victoria02.library.cornell.edu
drush pushkey victoria01.library.cornell.edu
drush pushkey victoria03.library.cornell.edu
|