WaspW
Wasp15mo ago
DanjelDurmo

Go-live issue

Hello everyone,

iI'm trying to go in PROD with my wasp/nodejs/react/flask/postgreSQL web application with Digital Ocean but in my site datanext.app i see just the favicon and the tab description, but all the page was completely blank.

Please see my step bellow:

1) Download Docker
2) Download postgreSQL
3) creation of user and database:
postgresql://USER:PASS@localhost:5432/DBNAME

4) Go in /var/www/app and run
wasp build

5) Go in /var/www/app/.wasp/build/server and run
npm install
and
npm run bundle

6) managing of env variable by installing PM2 and creatinf in /var/www/app the file ecosystem.config.js with:

module.exports = {
  apps: [
    {
      name: 'datanext-app',
      script: 'bundle/server.js',
      cwd: '/var/www/app/.wasp/build/server',
      instances: 1,
      autorestart: true,
      watch: false,
      max_memory_restart: '1G',
      env: {
        NODE_ENV: 'production',
        PORT: '3001',
        DATABASE_URL: 'postgresql://USER:PASS@localhost:5432/DBNAME',
        WASP_WEB_CLIENT_URL: 'https://datanext.app',
        WASP_SERVER_URL: 'https://datanext.app',
        STRIPE_KEY: '...,
    
      }
    }


7) Go in var/www/app/.wasp/build/server and run
export DATABASE_URL=postgresql://USER:PASS@localhost:5432/DBNAME and run npx prisma migrate deploy --schema=/var/www/app/.wasp/build/db/schema.prisma

8) Go in /var/www/app/.wasp/build/web-app and run
REACT_APP_API_URL=https://datanext.app/api npm run build

9) Setup ngix with sudo nano /etc/nginx/sites-available/default

But enything is not working...
Please I'm working on this project from more than 6 month and I'm trying to go in prod from 1 week but I failed. Could please someone help me?
Was this page helpful?