Giter Site home page Giter Site logo

Comments (5)

s1hon avatar s1hon commented on June 23, 2024

on app.js:30

    var usersFile = fs.readFileSync('users.json', 'utf8');

should be fixed like :

    var usersFile = fs.readFileSync(__dirname+'/users.json', 'utf8');

from forever-webui.

FGRibreau avatar FGRibreau commented on June 23, 2024

@opjlmi It seems to be an issue introduced by #29 (from @Cinezaster), don't hesitate to send a PR to fix this, I will merge it :)

from forever-webui.

Cinezaster avatar Cinezaster commented on June 23, 2024

Indeed users.json was intended to be in the root-folder of forever-webui and not of ~/ even in you run your forever module on ~/.
If you run node add_users.js it will add a users.json to the root-folder of forever-webui.

On some servers it could be an issue to write to ~/ because you're not permitted to. I can see the issue of setting users.json in the forever-webui folder because if you npm update forever-webui the file might be deleted. I suggest to store the users.json in ../users.json.

Any thoughts?

from forever-webui.

s1hon avatar s1hon commented on June 23, 2024

Ok, I got it.

I use git clone to download this, when I update, it won't delete the file.
But it will have some problem for download with npm install, store the users.json on root-folder maybe a best solution.

I still thank you for your reply 😄

from forever-webui.

Cinezaster avatar Cinezaster commented on June 23, 2024

I'm looking into other options for persistent data. like http://lokijs.org/
Because I would like to implement the improvements of #18 & #15. Next week I might have one of my developers implement a way to preconfigure a forever process. And I also need a storage for that.

Since this is actually a standalone application this shouldn't be in npm. In that case the data should be stored in /var/lib/

from forever-webui.

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.