Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Latest commit

 

History

History
17 lines (9 loc) · 500 Bytes

File metadata and controls

17 lines (9 loc) · 500 Bytes

Setup and files.

Do composer install to get dependency.

create-instance.php

Creates new droplet and output ip address. It requires two environment variables:

  1. DO_ACCESS_TOKEN - Digital ocean access token.
  2. DO_OS - Operating system. You can get list of available os from here.

It also creates new file called droplet.json which saves droplet id in it.

destroy.php

Deletes droplet specified in droplet.json and also deletes file droplet.json.