Using Your Local Ruby Environment to Deploy Blockspring Functions
Deploy your function to Blockspring
Now that you've generated a basic function, let's deploy it to Blockspring and watch it work. We'll use the blockspring push
command, which must be executed from our function's directory.
$ cd best-function-ever
$ blockspring push
Syncronizing script file ./block.rb
Syncronizing config file ./blockspring.json
The command line tool automatically syncs your local files with Blockspring's servers. Now let's view your function on the web with the blockspring open
command.
$ blockspring open
blockspring open
uses your default web browser to open your newly deployed function's homepage.
Your function's homepage shows its title, your username, and a simple form for providing input parameters.
Click "Submit" to see your function execute. You should see the result: "Hi! My name is Paul and my age is 26".
The function takes two parameters, first name and age, and returns a string combining the two.
Edit the parameters and click "Submit" again. You'll see the function runs with these new parameters too.

This function is fairly simple. Let's take a look under the hood and see how it really works.