GithubHelp home page GithubHelp logo

Comments (13)

chelm avatar chelm commented on July 22, 2024

@sirws would you mind adding you config file? I just want to see what set so I can match it.

from koop-socrata.

sirws avatar sirws commented on July 22, 2024

@chelm Bear with me... Are you talking about the \koop-sample-app\config\default.json?

from koop-socrata.

sirws avatar sirws commented on July 22, 2024

{
"server": {
"port": 1337
},
"data_dir": "/usr/local/koop/",
"db": {
"conn": "postgres://user:password@localhost/koopdev"
}
}

from koop-socrata.

chelm avatar chelm commented on July 22, 2024

@sirws Interesting. Dnt see it locally. It might a windows issue. Whats going on is that "/drop" calls the local file system and tries to remove directories of exported data. It could be that on windows it throws an error where on mac/unix it just ignores it.

from koop-socrata.

chelm avatar chelm commented on July 22, 2024

In fact looking at how koop removes dirs might be the issue...

https://github.com/Esri/koop/blob/master/lib/Files.js#L173-L180

That seems pretty "linuxy" to me. There may be some way to make that work in both Windows and Linux/Mac. you could try to commented some of that code out.

Also I'm curious if you have tried running the koop test suite on windows?

from koop-socrata.

sirws avatar sirws commented on July 22, 2024

How does "data_dir": "/usr/local/koop/" translate to windows? Since this isn't a *nix os?

Do you think I need to change the data_dir to something more windozy?

from koop-socrata.

sirws avatar sirws commented on July 22, 2024

Hahah! No, I haven't run the koop test suite. Is there some good doc on that?

from koop-socrata.

chelm avatar chelm commented on July 22, 2024

@sirws oh yes! you are probably right on making the data_dir more windows freindly! I bet thaat might help.

To run the tests just:

cd node_modules/koop
npm install --dev 
npm test 

from koop-socrata.

sirws avatar sirws commented on July 22, 2024

@chelm Well, looking at the code, it is calling rm which is not a windows command. Perhaps I will log a bug to handle that on windows properly.

from koop-socrata.

chelm avatar chelm commented on July 22, 2024

right. Im guessing there is a recursive remove dir module that will work on both OS, we could add that as a dep to Koop so that this will work.

from koop-socrata.

chelm avatar chelm commented on July 22, 2024

This might work, but looks like it has issues on windows too: https://github.com/isaacs/rimraf

from koop-socrata.

sirws avatar sirws commented on July 22, 2024

Are there any local files getting created? I am not seeing any on windows. Not sure where they would be.

/koop/socrata/wa/9ubz-5r4b/drop undefined {} {}
debug: 0=D:/koop-sample-app/data/files/socrata:https://data.wa.gov:9ubz-5r4b
debug: 0=D:/koop-sample-app/data/tiles/socrata:https://data.wa.gov:9ubz-5r4b
debug: 0=D:/koop-sample-app/data/thumbs/socrata:https://data.wa.gov:9ubz-5r4b

There is nothing the d:\koop-sample-app\data directory.

from koop-socrata.

chelm avatar chelm commented on July 22, 2024

@sirws Files will only get written when an export is created. And actually this raising a new issue about the dir structure. It'd be cleaner if koop contained the file dirs under the item id first. I'll make an issue for that.

from koop-socrata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.