You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NofarGizra edited this page Nov 3, 2013
·
26 revisions
Below is an example of a shell script that allows you to build a project and install a development OpenScholar installation. Please note that this code is already a part of OpenScholar and there is no need to copy it again, it is the file default.install.sh which is located in the root of this git repository.
##Building
Copy default.install.sh and name the copy install.sh cp default.install.sh install.sh
Edit install.sh to replace the default settings with your own. Make sure you enter your own MySQL details and your base domain URL for OpenScholar.
#!/bin/bash
chmod 777 www/sites/default
rm -rf www/
mkdir www
bash scripts/build
cd www
drush si -y openscholar --account-pass=admin --db-url=mysql://root:root@localhost/os --uri=http://local:8888/os_make openscholar_flavor_form.os_profile_flavor=development openscholar_install_type.os_profile_type=vsite
drush vset purl_base_domain 'http://localhost/openscholar/www'
# This command migrates dummy content and is used for development and testing.
drush en -y os_migrate_demo
drush mi --all --user=1
drush uli --uri=http://localhost/openscholar/www
##Re-building
Re-building OpenScholar is important and should be done whenever you wish to use a new OpenScholar release.
When you wish to re-build the profile (i.e. when there is a new release of OpenScholar), execute the code below from the command line: