项目作者: sirhypernova

项目描述 :
Launcher for instances of Cloud9 IDE
高级语言: JavaScript
项目地址: git://github.com/sirhypernova/c9launcher.git
创建时间: 2018-05-23T14:13:40Z
项目社区:https://github.com/sirhypernova/c9launcher

开源协议:MIT License

下载


c9launcher

Launcher for instances of Cloud9 IDE

Get started

On your server, run these commands:

  1. git clone https://github.com/sirhypernova/c9launcher.git
  2. cd c9launcher
  3. cp config-example.json config.json
  4. npm install

Now, open config.json.
It should look something like this:

  1. {
  2. "name": "c9 Launcher",
  3. "database": "c9launcher.db",
  4. "session": "session.db",
  5. "crypto": "a secret to encrypt workspace passwords",
  6. "sdkpath": "/home/c9/c9sdk/"
  7. }

Now it is time to clone the Cloud9 SDK to your server.
You can follow the steps to set it up here.

Once you have completed these steps, enter the path to the Cloud9 SDK directory in config.json
Now you are ready to launch c9launcher!

  1. npm start

This will initialize your database, and your instance will be ready to use.

The default login credentials are as follow:

  1. Username: admin
  2. Password: admin

When you log in, you will see this:
After login

Change your workspace root directory

Log in to c9launcher, then click on your username in the navigation bar.
Click on Admin.
You will see something that looks like this:
Admin Panel
Change the workspace directory to any directory the server can write to, and press enter to save.

Create a workspace

On the navigation bar, click New Workspace
You should see a screen that looks like this:
New Workspace

Set a name for your workspace, and choose a folder from the dropdown.
Set your username and password you use to authenticate to the workspace.
Once you are done, click submit.

When you are done, you should see something like this:
Workspace List

Launch Options

You can launch c9launcher with two different options.
These options are stored in environment variables.

IP: The IP for the web server to listen on. Defaults to 0.0.0.0.

PORT: The port for the web server to listen on. Defaults to 8080.