Package | Version | License |
---|---|---|
Unlight | MIT | |
Open Unlight | 1.0.0.pre | MIT |
Docker | ||
MySQL | 5.7 | |
Memcached |
Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.
In addition to creating a Droplet from the Open Unlight 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB Open Unlight Droplet in the SFO2 region, you can use the following curl
command. You need to either save your API access token) to an environment variable or substitute it in the command below.
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' -d \
'{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image": "unlight-openunlight-18-04"}' \
"https://api.digitalocean.com/v2/droplets"
The minimal server setup is included in One-Click, but you have to compile your own Flash client.
Unlight.swf
(Depend on your language)## Compile SWFdocker run --rm -v ${ROOT_DIR}/assets:/assets \
-v ${ROOT_DIR}/dist:/app/dist \
-v ${ROOT_DIR}/fonts:/app/fonts \
-e LANGUAGE=tcn
openunlight/legacy-builder compile-client
public/config.xml
and public/news.xml
The final structure:dist
├── Unlight.swf
├── index.html
└── public
├── config.xml
├── image/
├── news.xml
└── sound/
The
config.xml
andnews.xml
you can find in GitHub andimage/
andsound/
is included in assets we download in the first step