mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Server for stable, curated Haskell package sets
I also cleaned up the LTS code. It currently had the assumption that LTS major versions would be monotonically increasing from 0 without gaps. While likely to be true, that's slightly brittle, and did in fact break in my testing (where I only had an lts-2.4 in the database). |
||
|---|---|---|
| app | ||
| config | ||
| Data | ||
| design | ||
| Handler | ||
| Settings | ||
| static | ||
| templates | ||
| test | ||
| .dir-locals.el | ||
| .ghci | ||
| .gitignore | ||
| .travis.yml | ||
| Application.hs | ||
| cabal.config | ||
| devel.hs | ||
| DevelMain.hs | ||
| Echo.hs | ||
| font-awesome.min.css | ||
| Foundation.hs | ||
| fpbuild.config | ||
| Import.hs | ||
| LICENSE | ||
| Model.hs | ||
| README.md | ||
| Settings.hs | ||
| stackage-server.cabal | ||
| Types.hs | ||
| upload-cabal-loader.sh | ||
stackage-server
Server for stable, curated Haskell package sets
This repo is part of the Stackage project, and the live server can be viewed at https://www.stackage.org.
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. 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_TOKENenvironment variable to your auth token - run
stackage-curator upload2 your-snapshot.bundle --server-url http://your-stackage-server