-
Notifications
You must be signed in to change notification settings - Fork 61
Running Tango
Yashas Kumar edited this page Sep 8, 2015
·
12 revisions
This is a guide to starting the Tango server. If you have yet to set up Tango itself, please see the guide on Setting up Tango first.
-
Activate virtualenv.
$ cd /path/to/Tango $ virtualenv .
-
Run the source script.
$ source bin/activate
-
Start the Tango Server.
$ python restful-tango/server.py
-
Make sure Tango is up and running. The default port that Tango starts with is 3000, although this can be changed in
config.py
.$ curl localhost:<port>
The response should be:
sh Hello, world! RESTful Tango here!
-
When finished with your Tango session, kill the Tango server. Python catches Ctrl-C, so you'll need to use Ctrl-Z followed by
kill %1
instead. Then, deactivatevirtualenv
on the command-line:deactivate