mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-15 22:15:09 +08:00
Stacks Testnet
This folder contains the code for the Stacks testnet website.
Prerequisites
You must install Blockstack Core and its integration tests. Please see this document to install Blockstack Core, and see this document to install the integration tests.
Deploying
To build the website, run make. The site assets will be written to ./www/.
To deploy the website, you should do the following:
- Copy the contents of
./www/to/var/www/html(or wherever your Web server serves from). - Edit
./blockstack-public-testnet.shto setBLOCKSTACK_TESTNET_PUBLIC_HOSTto your server's hostname. - Start the testnet back-end by running
./blockstack-public-testnet.sh. Note that you may need to open some ports for the various testnet services. You can get the URLs and ports that need to be exposed withcurl http://your-testnet-site/config.
You can test the website locally by running make mocktest. This will generate
the website and serve it on http://localhost:8000 using mocked data.