-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
44 lines (35 loc) · 1.69 KB
/
README
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
<h1>Snarl Webapp</h1>
Howto Deploy Webapp (using the Git Read-Only url)
=================================================
local_username@localmachine:~/$ ssh [email protected]
[email protected]'s password:
[remote_server]$ pwd
/home/remote_username
[remote_server]$ ls
domain.com
[remote_server]$ cd domain.com/
[remote_server]$ git clone [email protected]:Snarl/Webapp.git
Cloning into Webapp...
remote: Counting objects: 32, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 32 (delta 6), reused 32 (delta 6)
Receiving objects: 100% (32/32), 164.23 KiB, done.
Resolving deltas: 100% (6/6), done.
Generating Webapp jsdocs
========================
Health Warning: This howto relates to local development, using the symlinking of my project directory to /var/www is just because I am lazy. Making apache follow symlinks is not recommended for a production server.
Other Notes: make sure apache is configured to follow symlinks if you want to use /var/www in this way
cd ~/
mkdir Snarl
cd Snarl
wget http://jsdoc-toolkit.googlecode.com/files/jsdoc_toolkit-2.4.0.zip
unzip jsdoc_toolkit-2.4.0.zip
rm jsdoc_toolkit-2.4.0.zip
git clone git://github.com/Snarl/Webapp.git
symlink the newly created Webapp folder to /var/www
satisfy REQUIREMENTS from /jsdoc-toolkit/README.txt
working with OpenJDK Runtime Environment (IcedTea6 1.9.9) on Ubuntu 10.04
n.b. because it clogs up the output html I like to temporary remove googlemaps.js, jquery-1.4.4.js and phonegap.0.9.4.js from working dir
cd jsdoc_toolkit-2.4.0/jsdoc-toolkit/
java -jar jsrun.jar app/run.js -a -t=templates/jsdoc -d=/var/www/Webapp/docs /var/www/Webapp
Finally, the documentation can be viewed at http://localhost/Webapp/docs