Skip to content

Instantly share code, notes, and snippets.

@waylonflinn
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waylonflinn/48252f7e3b98f3e5619f to your computer and use it in GitHub Desktop.
Save waylonflinn/48252f7e3b98f3e5619f to your computer and use it in GitHub Desktop.
setup a joyent smart machine to work with the joy-pusher npm module
#!/usr/bin/bash
# pass in a single argument with the name of the project
mkdir git
mkdir git/$1
mkdir apps
mkdir apps/$1
mkdir deployments
#mkdir deployments/$1
# copy the manifest file
# mv manifest.xml $1.xml
# edit the manifest file
# load the manifest file
# svccfg import $1.xml
# useful commands
# svcadm enable <name>
# svcadm restart <name>
# svcs -a | grep <name>
# logs are in /var/svc/log/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment