About platform stacks
vagrant-spk includes support for a number of programming languages
and/or web frameworks, each of which have different practices on how
to go from the app's source code to a running web server.
The following stacks exist:
golang: a stack for Go programs
lemp: a PHP-oriented software collection including nginx, MySQL, and PHP.
meteor: a stack for Meteor apps, including MongoDB.
nginxconfigured to serve static files from
uwsgi: a Python-oriented stack including nginx and uwsgi.
diy: Create your own.
Running this command:
vagrant-spk setupvm platformname
will set up a Linux virtual machine (with Sandstorm installed) ready to
run code in the platform called
This page contains reference documentation you might use after having gone through the main vagrant-spk packaging tutorial.
DIY platform stack
diy in this platform stack stands for do-it-yourself. It provides
just the basic scripts, and requires you to fill in the
This platform stack is for you if you want to package an app for
vagrant-spk where there is no platform stack for
the framework/library/platform the app was written against, or if
you want a minimal platform stack because you know what you're doing.
See Customizing & understanding vagrant-spk for details.
Meteor platform stack
For a Meteor app, keep the following in mind:
- Get a copy of the app code wherever you like. Alternatively, run
meteor create --example todos
cdinto that directory.
vagrant-spk setupvm meteor
vagrant-spk vm up. Note this will print lots of red text; sorry about that, then abruptly end.
vagrant-spk initand edit
vagrant-spk devand make sure the app works OK at http://local.sandstorm.io:6080/
vagrant-spk pack ~/projects/meteor-package.spkand you have a package file!
If the app fails at the
vagrant-spk dev step due to a packaging
error, you may need to:
meteor remove-platform ios meteor remove-platform android
and then retry the
vagrant-spk dev step.