Skip to content

Despliegue manual

Si prefieres no usar Docker, puedes ejecutar pipel8ne directamente en un host con Node.js y una instancia MongoDB.

Requisitos previos

  • Node.js 18+
  • MongoDB 6+
  • Un proxy inverso (Nginx, Caddy) para HTTPS en producción

1. Clonar y compilar el frontend

bash
git clone https://github.com/ogb4n/pipel8ne.git
cd pipel8ne
cd webapp && npm install && npm run build && cd ..

2. Compilar el backend

bash
cd backend && npm install && npm run build && cd ..

3. Configurar variables de entorno

Crea backend/.env:

env
DATABASE_URL=mongodb://user:password@localhost:27017/pipel8ne?authSource=admin
JWT_SECRET=<tu secreto>
SECRETS_ENCRYPTION_KEY=<tu clave 32 bytes>
NODE_ENV=production
PORT=3000

4. Iniciar el backend con PM2

bash
npm install -g pm2
pm2 start backend/dist/index.js --name pipel8ne --env-file backend/.env
pm2 save && pm2 startup

5. Proxy inverso Nginx

nginx
server {
    listen 443 ssl;
    server_name tu-dominio.com;

    ssl_certificate     /etc/letsencrypt/live/tu-dominio.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/tu-dominio.com/privkey.pem;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Released under the MIT License.