Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions lead to 404 not found #7

Open
exportio opened this issue May 23, 2018 · 1 comment
Open

Instructions lead to 404 not found #7

exportio opened this issue May 23, 2018 · 1 comment

Comments

@exportio
Copy link

$ 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

@obuchtala
Copy link
Member

obuchtala commented May 24, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants