Comments (5)
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.
@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.
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.
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.
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)
- Heads up for upcoming changes to forever HOT 1
- [Forever] Integrate forever.tail (target, [length,] callback)
- Not able to start forever-webui HOT 3
- interpret ANSI color codes in logs HOT 5
- Can't install via npm HOT 9
- Functional Tests
- Start a process from the UI
- Save a process that is stopped, for a later restart
- Authentication for Web UI HOT 3
- Create a build process from the makefile
- Improve the Forever processes listing layout to accomodate Fluid Layout
- Restructure app.js code HOT 2
- Add gh-pages
- Add logger support etc
- How to create my own user/password? HOT 3
- TypeError: Object function (req, res, next) HOT 2
- Erreur quand je me log (après avoir créer un user)
- npm clean not working HOT 2
- Deprecated ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forever-webui.