#Deployment Medusa v2 on Ec2

9 messages · Page 1 of 1 (latest)

grave creek
#

I have successfully hosted storefront and backend but I can't access the admin by
/app can you please help me out in this case or do we need to separate the admin from the backend

noble mango
#

Do you use nginx?

grave creek
#

Yes

noble mango
grave creek
#

Thanks

grave creek
#

@noble mango can you share Medusa config file

noble mango
#
import { loadEnv, defineConfig } from "@medusajs/framework/utils";

loadEnv(process.env.NODE_ENV || "development", process.cwd());

module.exports = defineConfig({
  projectConfig: {
    workerMode: "server",
    databaseLogging: false,
    databaseUrl: process.env.DATABASE_URL,
    http: {
      storeCors: process.env.STORE_CORS,
      adminCors: process.env.ADMIN_CORS,
      authCors: process.env.AUTH_CORS,
      jwtSecret: process.env.JWT_SECRET || "supersecret",
      cookieSecret: process.env.COOKIE_SECRET || "supersecret",
    },
  },
}):

it's a standard one

grave creek
#

When I am trying to access admin using /app I got just white blank page nothing else