jcoglan / restore

Simple remoteStorage server written in Node.js
293 stars 27 forks source link

How do I install this? #22

Closed 1337sup3rh4x0r closed 9 years ago

1337sup3rh4x0r commented 9 years ago

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

npm install restore

? 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 :)

jcoglan commented 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:

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.

jcoglan commented 9 years ago

Some links I was given when asking for Node deployment guides on twitter:

jcoglan commented 9 years ago

Did this answer your question? Can I close this issue?

1337sup3rh4x0r commented 9 years ago

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!

almereyda commented 9 years ago

Despite that, excellent support @jcoglan .

1337sup3rh4x0r commented 9 years ago

Yes, indeed outstanding!