Skip to main content

Deploy

Deploy with Vercel

Deploy with Vercel

Deploy with Docker

The project includes dockerfile and Nginx Conf
  1. Build image
docker build -t neutrino-mvp .
  1. Run container
docker run -d -p 80:80 --name neutrino-mvp neutrino-mvp
::: details Why have your own Nginx Conf? If you have multiple applications that need to be connected to different clients, each of them may need to handle cross-domain issues, which can be very slow and may not be updated in time. If you have such needs, you can refer to the following configuration file and modify it. After verification, this configuration file is available.
server {
    listen       80;
    server_name  localhost;

    client_max_body_size 1G; // Here, a larger value is set to allow file uploads, avoiding upload failures

    location /   {
        root   /app/dist;
        index  index.html index.htm;
        try_files $uri $uri/ /index.html;
    }

    location /api/ {
        proxy_pass http://backend:3000; // Modify according to actual conditions
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
}