benschw / satis-go

GNU General Public License v3.0
96 stars 21 forks source link

how to make satis-go use 'archive' config from db.json #11

Open Doqnach opened 6 years ago

Doqnach commented 6 years ago

Currently using the https://github.com/ubc/satis-go-docker docker container for playing around with satis-go.

My db.json looks like the following (with a whole list of private repo's, next to that laravel one):

{
  "name": "My First Satis-Go",
  "homepage": "http://127.0.0.1:8080",
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/jamisonvalenta/Laravel-4-Generators.git"
    }
  ],
  "require-all": true,
  "archive": {
    "directory": "dist",
    "format": "tar",
    "prefix-url": "http://cdn.satis.test"
  }
}

After starting satis-go (/opt/satis-go/satis-go) the archive key gets removed from the db.json and is not transfered to the stage.json.

How can I make it create the dist and keep this config?

iamdevnull commented 6 years ago

i have the same problem.

dshemin commented 5 years ago

Hi, I have same problem and find out that satis-go binaries from https://github.com/benschw/satis-go/releases/tag/0.1.1 always override db.json file. So I compile from source and it works well.