Skip to content

Commit 3704998

Browse files
committed
steps to update
1 parent 6e43d11 commit 3704998

File tree

5 files changed

+53
-90
lines changed

5 files changed

+53
-90
lines changed

README.md

+51-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,56 @@
1+
# Working with Cloud 9
2+
Review the Video walkthrough here: [Office Mix](https://mix.office.com/watch/1w8lekdndxjhq)
13

2-
,-----.,--. ,--. ,---. ,--.,------. ,------.
3-
' .--./| | ,---. ,--.,--. ,-| || o \ | || .-. \ | .---'
4-
| | | || .-. || || |' .-. |`..' | | || | \ :| `--,
5-
' '--'\| |' '-' '' '' '\ `-' | .' / | || '--' /| `---.
6-
`-----'`--' `---' `----' `---' `--' `--'`-------' `------'
7-
-----------------------------------------------------------------
4+
### Logon to Cloud 8
5+
Go to [http://c9.io](http://c9.io) and logon with GitHub or whatever credentials you choose
86

7+
### Create your Workspace
8+
Call it whatever you like, but choose "Custom".
99

10-
Hi there! Welcome to Cloud9 IDE!
10+
### Clone the Repository
1111

12-
To get you started, create some files, play with the terminal,
13-
or visit http://docs.c9.io for our documentation.
14-
If you want, you can also go watch some training videos at
15-
http://www.youtube.com/user/c9ide.
12+
```
13+
git clone https://github.com/cs612-f15/tomcat-mysql-c9.git
14+
15+
cd tomcat-mysql-c9
16+
17+
```
18+
19+
## Setting up MySQL
20+
MySQL is already installed.
21+
22+
Run the following from your ```~/workspace/tomcat-mysql-c9``` directory.
23+
24+
```
25+
./setupMySql.sh
26+
```
27+
28+
## Setting up Tomcat
29+
The following will download V8 of Tomcat and unpack it to ```./tomcat```
30+
31+
Run the following from your ```~/workspace/tomcat-mysql-c9``` directory.
32+
33+
```
34+
./setupTomcat.sh
35+
36+
```
37+
38+
## Building Java classes
39+
40+
Once the Tomcat script is run, the ```survey.war``` file is deployed to ```./tomcat/webapps``` and as the Survey site is
41+
requested, Tomcat extracts the WAR file.
42+
43+
This WAR file contains all the content, JSP, Class - and the Java source files.
44+
45+
A helper script allows you to edit the ```*.java``` source files, then build, then restart tomcat.
46+
47+
```
48+
./buildJava.sh
49+
./tomcat/bin/catalina.sh stop
50+
./tomcat/bin/cataling.sh start
51+
```
52+
53+
54+
Note: JSP files if changes are immediately reprocessed and reflected within Tomcat.
55+
Class files, sourced from Java files, requires a "restart" of Tomcat - that is what the ```./tomcat/bin/cataling stop/start``` provides.
1656

17-
Happy coding!
18-
The Cloud9 IDE team

books.sql

-75
This file was deleted.

buildJava.sh

100644100755
File mode changed.

setupMySql.sh

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ cwd=$(pwd)
66

77
mysql-ctl start
88

9-
wget https://pacedps.blob.core.windows.net/cs612-f2015/books.sql
9+
wget https://pacedps.blob.core.windows.net/cs612-f2015/survey.sql
1010

11-
mysql < $cwd/books.sql
11+
sudo mysql < $cwd/survey.sql
1212

1313
sudo mysql < $cwd/setRootUser.sql
1414

setupTomcat.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)