Update README.md #85

This commit is contained in:
Dan Burton 2015-04-28 16:46:14 -07:00
parent cdd059d9eb
commit 130b22e3ea

View File

@ -12,3 +12,31 @@ Inside the config directory, there are two files ending in `-sample`. They
should be copied to remove the `-sample` suffix for the site to work. We do it
this way to avoid accidentally committing real database credentials into the
Git repository.
## How to upload a snapshot bundle to your own instance of stackage-server
You can upload snapshots to your own instance of stackage-server using
[stackage-curator](https://github.com/fpco/stackage-curator).
Here's how:
Start your instance (e.g. run `stackage-server Development`)
In a browser:
* Log into your instance
* Navigate to `http://your-stackage-server/profile`
* Take note of both your username and auth token
Edit your config/settings.yaml. Make sure your username is listed as an admin user, e.g.
```
admin-users:
- danburton
```
Restart your stackage-server instance if you changed its config/settings.yaml
In a terminal:
* Set the `STACKAGE_AUTH_TOKEN` environment variable to your auth token
* run `stackage-curator upload2 your-snapshot.bundle --server-url http://your-stackage-server`