|
1 |
| -### c9launcher |
| 1 | +# c9launcher |
| 2 | +### Launcher for instances of Cloud9 IDE |
| 3 | + |
| 4 | +## Get started |
| 5 | +On your server, run these commands: |
| 6 | +``` |
| 7 | +git clone https://github.com/sirhypernova/c9launcher.git |
| 8 | +cd c9launcher |
| 9 | +cp config-example.json config.json |
| 10 | +``` |
| 11 | +Now, open config.json. |
| 12 | +It should look something like this: |
| 13 | +```json |
| 14 | +{ |
| 15 | + "name": "c9 Launcher", |
| 16 | + "database": "c9launcher.db", |
| 17 | + "session": "session.db", |
| 18 | + "crypto": "a secret to encrypt workspace passwords", |
| 19 | + "sdkpath": "/home/c9/c9sdk/" |
| 20 | +} |
| 21 | +``` |
| 22 | +Now it is time to clone the Cloud9 SDK to your server. |
| 23 | +You can follow the steps to [set it up here](https://github.com/c9/core/). |
| 24 | + |
| 25 | +Once you have completed these steps, enter the path to the Cloud9 SDK directory in `config.json` |
| 26 | +Now you are ready to launch c9launcher! |
| 27 | + |
| 28 | +``` |
| 29 | +npm start |
| 30 | +``` |
| 31 | + |
| 32 | +This will initialize your database, and your instance will be ready to use. |
| 33 | + |
| 34 | +The default login credentials are as follow: |
| 35 | +``` |
| 36 | +Username: admin |
| 37 | +Password: admin |
| 38 | +``` |
| 39 | + |
| 40 | +## Change your workspace root directory |
| 41 | +Log in to c9launcher, then click on your username in the navigation bar. |
| 42 | +Click on Admin. |
| 43 | +You will see something that looks like this: |
| 44 | + |
| 45 | +Change the workspace directory to any directory the server can write to, and press enter to save. |
| 46 | + |
| 47 | +## Create a workspace |
| 48 | + |
| 49 | +On the navigation bar, click `New Workspace` |
| 50 | +You should see a screen that looks like this: |
| 51 | + |
| 52 | + |
| 53 | +Set a name for your workspace, and choose a folder from the dropdown. |
| 54 | +Set your username and password you use to authenticate to the workspace. |
| 55 | +Once you are done, click submit. |
0 commit comments