substance / dar-server

Filesystem backend for document archives

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructions lead to 404 not found

exportio opened this issue · comments

commented

$ git clone https://github.com/substance/dar-server.git
$ cd dar-server

-- here I created an archives folder and a sub folder named example1, in which I placed the example from https://github.com/substance/dar/tree/master/examples/classic-manuscript

$ npm install
$ node lib/server.js -d /archives/example1

Instructions say that I can access /archives/example1 via http://localhost:5000/example1
However, this shows the following error in the browser

Failed to load resource: the server responded with a status of 404 (Not Found) at the path http://localhost:5000/example1

I have updated the README to make this easier.
In this particular case, you should have used

$ node lib/server.js -d ./archives
  1. I assume your archives folder is not in the root folder of your fs, i.e. it is important to use a relative path.
  2. ATM, dar-server assumes to be run in a parent folder that contains several archives.