forked from hferentschik/drupal-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
67 lines (51 loc) · 1.92 KB
/
Copy pathREADME
File metadata and controls
67 lines (51 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Quickstart
==========
1) Create an account at http://openshift.redhat.com/
2) Create a php-5.3 application and attach mysql to it:
$ rhc app create -a drupal -t php-5.3
$ rhc app cartridge add -a drupal -c mysql-5.1
3) Add this upstream drupal repo
$ cd drupal
$ git remote add upstream -m master git://github.com/openshift/drupal-example.git
$ git pull -s recursive -X theirs upstream master
note: if you named your application something other than 'drupal' make sure to edit
php/sites/default/settings.php and modify the database to match the name
of your application.
4) Then push the repo upstream
$ git push
5) That's it, you can now checkout your application at:
http://drupal-$yourlogin.rhcloud.com
6) Default Admin Username: Admin
Default Password: OpenShiftAdmin
Updates
=======
In order to update or upgrade to the latest drupal, you'll need to re-pull
and re-push.
1) Pull from upstream:
$ cd drupal/
$ git pull -s recursive -X theirs upstream master
2) Push the new changes upstream
$ git push
Repo layout
===========
php/ - Externally exposed php code goes here
libs/ - Additional libraries
misc/ - For not-externally exposed php code
../data - For persistent data
deplist.txt - list of pears to install
.openshift/action_hooks/build - Script that gets run every push, just prior to
starting your app
Notes about layout
==================
Please leave php, libs and data directories but feel free to create additional
directories if needed.
Note: Every time you push, everything in your remote repo dir gets recreated
please store long term items (like an sqlite database) in ../data which will
persist between pushes of your repo.
deplist.txt
===========
A list of pears to install, line by line on the server. This will happen when
the user git pushes.
Additional information
======================
Link to additional information will be here, when we have it :)