This repository was archived by the owner on Mar 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Building using Make file
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.shto replace the default settings with your own as explained in the comments below. - After saving install.sh with your changes, execute
bash install.shfrom the command line.
#!/bin/bash
chmod 777 www/sites/default
rm -rf www/
mkdir www
bash scripts/build
cd www
# Modify the MySQL settings "root:root@localhost/os" so they will match your own.
# Pattern: --db-url=mysql://{{MySQL Username}}:{{MySQL Password}}@{{MySQL Host}}/{{Database Name}}
# Modify "http://localhost/os" to be your OpenScholar base domain URL.
# Pattern: --uri={{Base URL}}
drush si -y openscholar --account-pass=admin --db-url=mysql://root:root@localhost/os --uri=http://localhost/os openscholar_flavor_form.os_profile_flavor=development openscholar_install_type.os_profile_type=vsite
# Modify "http://localhost/os" to be your OpenScholar base domain URL.
# Pattern: drush vset purl_base_domain '{{Base URL}}'
drush vset purl_base_domain 'http://localhost/os'
# 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:
bash scripts/build.sh -y