Closed 1337sup3rh4x0r closed 9 years ago
I'm not sure exactly what the scope of this question is, or how much you know about deploying web apps, but my hunch is you'd be better off asking the Node mailing list for deployment recommendations. There are so many options out there and I can only tell you what I'd do. You might be able to skip lots of this work if you go with a Node-dedicated hosting platform.
To run the script under https://github.com/jcoglan/restore#usage, you save that code into a file called, say, server.js
and then run node server.js
.
At a very high-level here's how I would deploy this myself:
nvm
to do this.alice
, to run the Node server./home/alice/restore
with permissions 0700
to that only alice
can access any data in this directory.alice
, install reStore using npm install restore
and place your server script in the same directory. The server should run on some externally inaccessible port, say 8000, and store data inside /home/alice/restore
. It should set umask
as shown in the readme.alice
when the machine boots.nobody
).That roughly covers it but there's a lot more detail to all those steps that I don't have time to go into. There are alternatives to all the above with platforms like Heroku and Nodejitsu available, but you must have access to set up filesystem storage as described. There's also other isolation technologies like Docker to consider.
Some links I was given when asking for Node deployment guides on twitter:
Did this answer your question? Can I close this issue?
Yes, it did give me enough to figure out that this might not be the path I want to persue for my specific issue. Thank you and sorry for not reporting back!
Despite that, excellent support @jcoglan .
Yes, indeed outstanding!
Hi there, I am looking for a remotestorage server to use with my laverna setup and I am thinking this might be it. However I am somehow to dumb to figure out what I have to do to set it up.
I assume that I need to create a web server and somehow install this to it, correct? So do I ssh into the webservers directory and install restore there via
? And then what do I do to end up with a server and login credentials that I can pass to laverna to store its data?
I can see "The following Node script will run a basic server:" from the documentation but how do I run a node script? Is this something I execute via CLI on the server?
Sorry if this is a noob question, but I guess a guy has to start somewhere :)