H
H
HelenChydilove2017-12-21 11:32:42
linux
HelenChydilove, 2017-12-21 11:32:42

How to put landing page (node ​​js) on VPS SSD hosting?

Good for all!
Here I want to try to lay out landing (node ​​js is used) on VPS hosting with SSD without administration. Debian 8 server.
Connected to the server via PuTTY.
Who has experience in setting up and laying out a site for hosting, I don’t quite understand how to lay it out correctly without congestion)
Who can and wants to give advice on where to start

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2017-12-21
@rockon404

The easiest option.
1. Create a working directory:
2. Go to the working directory:
3. Load the repository with your project: 4. Go to the project directory: 5. Install dependencies: 6. If there are configs, secrets and api keys, add. 7. Set up NGINX

server {
    listen 80;
    server_name example.com;
    access_log /var/log/nginx/example.com;

    location / {
        proxy_pass         "http://127.0.0.1:3000";
    }
}

8. Run:
npm start

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question