This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
deploy9 with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
A library to automatically deploy commands to joyent
npm install deploy9 -g
This lib Assumes your system is already capable of accessing Joyent from the commandline with a non-password protected key.
If you keyfile is password protected see Generating Non-Password Keys below
deploy9 COMMANDTORUN -a USERNAME -i NAMEOFKEYONSERVER -k YOURPRIVATEKEY
deploy9 ls -a nearform -i /nearform/keys/nearform_joyent_rsa -k nearform_joyent_rsa
Create an key file that is not password protected
ssh-keygen -t rsa -C "email@example.com"
Don't enter a password. This is required as ssh2 has no way of prompting for passwords as yet.
Copy the .pub up to your Joyent public key store
Execute multiple commands instead of one huge string to improve debugging.
Improve error handling