forked from antlr/website-antlr4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
antlr4-web-migration-notes.txt
119 lines (86 loc) · 3.39 KB
/
antlr4-web-migration-notes.txt
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
m1.large box at amazon. shifted antlr3,4 to aws box
6.0.36 tomcat untar in /usr/local
copy ~/research/website
copy ~/antlr/support/ newsites
on aws:
mkdir website/antlr3
mkdir website/antlr4
currently: /usr/local/website/WEB-INF/web.xml has ptr to lime website servlet
added www.antlr.org under Catalina like localhost
in server.xml:
<Engine name="Catalina" defaultHost="www.antlr.org">
nah. back to localhost; set it to have appBase of antlr3_webapps
added to conf/web.xml for news/list etc...
<welcome-file>list</welcome-file>
takes like 3 mins after first 3 min of init to get wiki started. wait for it.
no virtual hosting; limepagedispatcher senses incoming host andsets docRoot to route traffic
set port ot 80 in server.xml
internal firewall
history |grep chkconfig
30 chkconfig iptables off
31 chkconfig iptables off
38 chkconfig iptables
39 chkconfig iptables off
42 chkconfig ip6tables off
57 history |chkconfig
58 history |grep chkconfig
service iptables stop
41 service ip6tables stop
server.xml
<Host name="www.stringtemplate.org" appBase="st_webapps">
<Alias>stringtemplate.org</Alias>
</Host>
<Host name="www.antlr3.org" appBase="antlr3_webapps">
<Alias>antlr3.org</Alias>
</Host>
<Host name="www.antlr4.org" appBase="antlr4_webapps">
<Alias>antlr4.org</Alias>
</Host>
mkdir -p antlr3_webapps/ROOT
mkdir -p antlr4_webapps/ROOT
ln -s /usr/local/website/antlr4 antlr4_webapps
ln -s /usr/local/website/antlr3 antlr3_webapps
scp -r '[email protected]:~/antlr/support/websites/ANTLR/*' /usr/local/website/antlr4/ROOT
TODO: linguamantra.org, parr.us, stringtemplate.org
cp research/website from maniac to website/antlr3/ROOT
TODO: http://www.antlr.org/blog/index.tml
TODO: workshops
wget on
http://www.antlr.org/
http://www.antlr.org/download.html
http://www.antlr.org/works/index.html
http://www.antlr.org/about.html
http://www.antlr.org/support.html
http://www.antlr.org/news/list
http://www.antlr.org/article/list
http://www.antlr.org/grammar/list
http://www.antlr.org/share/list
http://www.antlr.org/why.html
http://www.antlr.org/showcase/list
http://www.antlr.org/testimonial/list
http://www.antlr.org/license.html
http://www.antlr.org/credits.html
renamed list.1 to news/list etc...
about.html download.html license.html showcase why.html
article grammar news support.html works
credits.html index.html share testimonial
scp -r static_antlr.org [email protected]:~/research/website
<Host name="www.stringtemplate.org" appBase="st_webapps"/>
---------------
CONFLUENCE
bin/catalina.sh, add:
export JAVA_OPTS="-Xincgc -Xms128m -Xmx2048m -XX:MaxPermSize=256m $JAVA_OPTS -Djava.awt.headless=true "
export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Xincgc -Xmx2048m"
conf/Catalina/localhost/wiki.xml:
<Context path="/wiki" docBase="/usr/local/confluence-4.1.9/confluence" debug="0" reloadable="true">
</Context>
tar up /usr/local/confluence-4.1.9 and copy to aws
scp [email protected]:/usr/local/confluence-4.1.9.zip .
untar
setting confluence/WEB-INF/classes/confluence-init.properties to:
confluence.home=/var/data/confluence-4.1.9
data is /var/data/confluence-4.1.9
but database is:
/var/data/confluence-3.4.5
/var/data/confluence-4.1.9/confluence.cfg.xml:
<property name="hibernate.connection.url">jdbc:hsqldb:/var/data/confluence-3.4.5/database/confluencedb</property>