M
M
msgim2015-07-29 11:44:05
Nginx
msgim, 2015-07-29 11:44:05

Setting up API (loopback) on the nginx server, how to properly deploy?

Good afternoon everyone.
There is a working api that lies on the server ssh://[email protected]:7777/home/git/api-1/
Tell me how to properly deploy the API to api.example.com/api-1/ and how to configure NGINX?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artyom Mokrenko, 2015-07-29
@tjomamokrenko

Hire a specialist?

M
msgim, 2015-07-29
@msgim

With nginx everything seems to be clear.

server {
        listen   80;
        access_log /home/example/logs/nginx.access.log;
        server_name api.example.net;
        location /api1 {
                root /home/example/api/api1;
        }
        location ~ \.php$ {
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                include        fastcgi_params;
        }
}

Well, it's not clear how to send to this folder? Should it be taken directly on the server from git or from the local machine?
docs.strongloop.com/display/NODE/slc+build
docs.strongloop.com/display/NODE/slc+deploy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question