|
| 1 | +# Working with Cloud 9 |
| 2 | +Review the Video walkthrough here: [Office Mix](https://mix.office.com/watch/1w8lekdndxjhq) |
1 | 3 |
|
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 |
8 | 6 |
|
| 7 | +### Create your Workspace |
| 8 | +Call it whatever you like, but choose "Custom". |
9 | 9 |
|
10 |
| -Hi there! Welcome to Cloud9 IDE! |
| 10 | +### Clone the Repository |
11 | 11 |
|
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. |
16 | 56 |
|
17 |
| -Happy coding! |
18 |
| -The Cloud9 IDE team |
|
0 commit comments