1- issues.roundup-tracker.org:
1+ Roundup has three web sites:
2+
3+ * http://www.roundup-tracker.org/
4+ * http://wiki.roundup-tracker.org/
5+ * http://issues.roundup-tracker.org/
6+
7+ www and wiki are hosted on SourceForge.
8+
9+
10+ updating issues.roundup-tracker.org
11+ ===================================
212
313 * log into issues.roundup-tracker.org
414 * get a working copy of roundup/website/issues from the SCM, either via
@@ -16,47 +26,76 @@ issues.roundup-tracker.org:
1626 * restart the roundup server:
1727 sudo /etc/init.d/roundup restart
1828
19- [1] All services hosted on sf.net:
20- * log into sf.net (Generic sf instructions can be found here:
21- http://sourceforge.net/apps/trac/sourceforge/wiki/Shell%20service )
22- ssh -t <user>,
[email protected] create
23- * set project_home:
24- project_home=/home/project-web/roundup
25- cd ${project_home}
26- * read up on other people changes and add yours
27- vim ${project_home}/logbuch.txt
28- * update the working copy of the SCM roundup source (includes www and wiki)
29- cd ${project_home}/src/roundup
30- hg pull -u
31- (The warning about "Not trusting file /home/hg/p/roundup/code/.hg/hgrc
32- from untrusted user" can be ignored.)
33- * When done working in the shell, you can destroy it early to free resources:
34- shutdown
35-
36- www.roundup-tracker.org:
37- * follow [1].
38- * activate the virtualenv
39- . ${project_home}/docbuilder/bin/activate
40- * go to the now current source directory
41- cd ${project_home}/src/roundup/website/www
42- * (build requirement: sphinx and the sphinxcontrib-cheeseshop plugin
43- http://pypi.python.org/pypi/sphinxcontrib-cheeseshop)
44- * build it
45- make html
46- * you may also "make clean"
47- * install it
48- cp -r ./html/* ${project_home}/htdocs/
49- or alternatively (leaving out the --dry-run later)
50- rsync --dry-run -v --checksum --recursive ./html/* ${project_home}/htdocs/
51-
52- (I think I can simplify the Makefile above such that the installation will be included as a make target.)
53-
54- wiki.roundup-tracker.org:
55- * follow [1].
56- * the main wiki configuration is here
57- vim persistent/wiki/wikiconfig.py
58- * go to the now current source directory
59- cd ${project_home}/src/roundup/website/wiki
60- * copy the files into the right places:
61- cp static/roundup/* ${project_home}/htdocs/_wiki/
62- cp wiki/data/plugin/theme/roundup.py ${project_home}/persistent/wiki/data/plugin/theme/
29+
30+ updating services hosted on sf.net (www and wiki)
31+ =================================================
32+ Generic SF instructions for web service recommend
33+ uploading files through SFTP, described here:
34+ http://sourceforge.net/p/forge/documentation/Project%20Web%20Services/
35+
36+ However, SFTP is ugly to script in non-interactive
37+ mode, so we use SSH access to fetch everything and
38+ build from server side.
39+
40+ logging into sf.net
41+ -------------------
42+ Current docs are taken down with SourceForge Trac,
43+ so working instructions are available from here:
44+ http://web.archive.org/web/20140618231150/http://sourceforge.net/apps/trac/sourceforge/wiki/Shell%20service
45+
46+ # log in, replace <user> with your account
47+ ssh -t <user>,
[email protected] create
48+
49+ # set project_home and go there
50+ project_home=/home/project-web/roundup
51+ cd ${project_home}
52+
53+ # read up on other people changes and add yours
54+ vim logbuch.txt
55+
56+ # pull latest Roundup source with www and wiki
57+ # (the warning about "Not trusting file ... " can be ignored
58+ # for now https://sourceforge.net/p/forge/site-support/8217/)
59+ hg pull -u --cwd src/roundup
60+
61+
62+ updating wiki.roundup-tracker.org
63+ ---------------------------------
64+ wiki doesn't require building anything, so if you're
65+ logged in to SF (see above), just copy new files over
66+ to new directories:
67+
68+ cd ${project_home}/src/roundup/website/wiki
69+ cp -r -p static/roundup ${project_home}/htdocs/_wiki/
70+ cp -p wiki/data/plugin/theme/roundup.py ${project_home}/persistent/wiki/data/plugin/theme/
71+ cd -
72+
73+ If you need to adjust wiki configuration, it is here:
74+
75+ vim persistent/wiki/wikiconfig.py
76+
77+
78+ updating www.roundup-tracker.org
79+ ---------------------------------
80+ Site update requires rebuilding HTML files. For that
81+ you `sphinx` and `sphinxcontrib-cheeseshop` are required/
82+ Hopefully, they are already installed into virtualenv, so
83+ the whole procedure looks like so:
84+
85+ # activate the virtualenv
86+ . ${project_home}/docbuilder/bin/activate
87+ # cd to website source and build it
88+ cd ${project_home}/src/roundup/website/www
89+ make clean
90+ make html
91+ # you can check which files updated
92+ #diff -qur ./html/ ${project_home}/htdocs/
93+ # copy to website dir
94+ cp -r -p ./html/* ${project_home}/htdocs/
95+ # or try it with rsync (skip --dry-run when ready)
96+ #rsync --dry-run -v --checksum --recursive ./html/* ${project_home}/htdocs/
97+
98+ When done working in the shell, you can destroy it early
99+ to free resources:
100+
101+ shutdown
0 commit comments