Hi guys, I have actually been trying to self host...
# developers
l
Hi guys, I have actually been trying to self host cal.com following the official docs but localhost:3000 never seems to load when I do a yarn dev or yarn dx I am self hosting it on an ubuntu machine provisioned from digital ocean I have previously self hosted a caldav server and I want to integrate it with self hosted cal.com I have docker installed, postgresql installed and have configured a password and have edited DATABASE_URL accordingly as well. These were my logs for yarn dev
Copy code
oot@son-vm1:~/cal.com# yarn dev
• Packages in scope: @calcom/web
• Running dev in 1 packages
• Remote caching disabled
//:env-check:app-store: cache bypass, force executing 74ed5de9830a49f6
//:env-check:common: cache bypass, force executing e7fedb15708bbf43
//:env-check:app-store: 
//:env-check:app-store: [ DOTENV-CHECKER ] - Initializing checks for .env files consistency & sync...
//:env-check:app-store: 
//:env-check:common: 
//:env-check:common: [ DOTENV-CHECKER ] - Initializing checks for .env files consistency & sync...
//:env-check:common: 
//:env-check:app-store: šŸ“— [ INFO ]  āœ… Schema file (.env.appStore.example) checked successfully
//:env-check:common: šŸ“— [ INFO ]  āœ… Schema file (.env.example) checked successfully
//:env-check:app-store: šŸ“— [ INFO ]  āœ… Environment file (.env.appStore) checked successfully
//:env-check:common: 🚧 [ WARN ]  ⚠  Environment file (.env) differs from .env.example
//:env-check:common: 
//:env-check:common:   !! Alert !! The following key is not present in the ".env.example" file:
//:env-check:common:                - NEXT_PUBLIC_DEBUG
//:env-check:common:     
//:env-check:common: šŸ“— [ INFO ]  āœ… Environment file (.env) updated successfully
@calcom/web:dev: cache bypass, force executing f77b460c0ea2f3b7
@calcom/web:dev: ready - started server on 0.0.0.0:3000, url: <http://localhost:3000|http://localhost:3000>
@calcom/web:dev: event - compiled client and server successfully in 11.5s (2671 modules)
@calcom/web:dev: wait  - compiling / (client and server)...
@calcom/web:dev: 
@calcom/web:dev: warn - The `@variants` directive has been deprecated in Tailwind CSS v3.0.
@calcom/web:dev: warn - Use `@layer utilities` or `@layer components` instead.
@calcom/web:dev: warn - <https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer|https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer>
@calcom/web:dev: DEPRECATION: adding rounded classes via the variants array is deprecated. Use nocompatible mode instead (i.e. when adding the plugin, use `scrollbarPlugin({ nocompatible: true })`)
@calcom/web:dev: 
@calcom/web:dev: warn - The RTL features in Tailwind CSS are currently in preview.
@calcom/web:dev: warn - Preview features are not covered by semver, and may be improved in breaking ways at any time.
@calcom/web:dev: event - compiled client and server successfully in 17.6s (2720 modules)
@calcom/web:dev: warn(prisma) Conflict for env vars NEXT_PUBLIC_DEBUG, CALCOM_LICENSE_KEY, DATABASE_URL, PRISMA_GENERATE_DATAPROXY, NEXT_PUBLIC_WEBAPP_URL, NEXT_PUBLIC_WEBSITE_URL, NEXT_PUBLIC_CONSOLE_URL, NEXT_PUBLIC_EMBED_LIB_URL, SAML_DATABASE_URL, SAML_ADMINS, NEXT_PUBLIC_HOSTED_CAL_FEATURES, SAML_CLIENT_SECRET_VERIFIER, PGSSLMODE, NEXTAUTH_URL, NEXTAUTH_SECRET, NEXTAUTH_COOKIE_DOMAIN, CALCOM_TELEMETRY_DISABLED, CRON_API_KEY, CALENDSO_ENCRYPTION_KEY, NEXT_PUBLIC_INTERCOM_APP_ID, NEXT_PUBLIC_ZENDESK_KEY, NEXT_PUBLIC_HELPSCOUT_KEY, NEXT_PUBLIC_FRESHCHAT_TOKEN, NEXT_PUBLIC_FRESHCHAT_HOST, SEND_FEEDBACK_EMAIL, SENDGRID_API_KEY, SENDGRID_EMAIL, NEXT_PUBLIC_SENDGRID_SENDER_NAME, TWILIO_SID, TWILIO_TOKEN, TWILIO_MESSAGING_SID, TWILIO_PHONE_NUMBER, NEXT_PUBLIC_SENDER_ID, TWILIO_VERIFY_SID, NEXT_PUBLIC_IS_E2E, NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE, NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE, NEXT_PUBLIC_IS_PREMIUM_NEW_PLAN, NEXT_PUBLIC_STRIPE_PREMIUM_NEW_PLAN_PRICE, STRIPE_TEAM_MONTHLY_PRICE_ID, STRIPE_WEBHOOK_SECRET, STRIPE_PRIVATE_KEY, STRIPE_CLIENT_ID, PAYMENT_FEE_FIXED, PAYMENT_FEE_PERCENTAGE, API_KEY_PREFIX, EMAIL_FROM, EMAIL_SERVER_HOST, EMAIL_SERVER_PORT, EMAIL_SERVER_USER, EMAIL_SERVER_PASSWORD, NEXT_PUBLIC_TEAM_IMPERSONATION, CLOSECOM_API_KEY, SENDGRID_SYNC_API_KEY, NEXT_PUBLIC_SENTRY_DSN, SENTRY_IGNORE_API_RESOLUTION_ERROR, NEXT_PUBLIC_APP_NAME, NEXT_PUBLIC_SUPPORT_MAIL_ADDRESS, NEXT_PUBLIC_COMPANY_NAME, NEXT_PUBLIC_DISABLE_SIGNUP, CSP_POLICY, EDGE_CONFIG in ../../.env and ../../packages/prisma/.env
@calcom/web:dev: Env vars from ../../packages/prisma/.env overwrite the ones from ../../.env
@calcom/web:dev:       
@calcom/web:dev: wait  - compiling /auth/login (client and server)...
@calcom/web:dev: event - compiled client and server successfully in 10.3s (3219 modules)
@calcom/web:dev: wait  - compiling /middleware (client and server)...
@calcom/web:dev: event - compiled successfully in 4.6s (83 modules)
@calcom/web:dev: 15:10:12.134 DEBUG [OK][0.0008s] query 'viewer.public.i18n' 
@calcom/web:dev: 

 Tasks:    3 successful, 3 total
Cached:    0 cached, 3 total
  Time:    4m10.832s
Any help would be great! Thank you!
p
the logs say everything went fine, this has to be an environment issue on your end
why do you run yarn dx on a production environment? can you try yarn build instead?
l
hm i do get errors when i try yarn build. here's the log:
Copy code
:~/cal.com# yarn build
• Packages in scope: @calcom/app-store, @calcom/app-store-cli, @calcom/config, @calcom/core, @calcom/dailyvideo, @calcom/dayjs, @calcom/embed-core, @calcom/embed-react, @calcom/embed-snippet, @calcom/eslint-plugin-eslint, @calcom/features, @calcom/lib, @calcom/office365video, @calcom/prisma, @calcom/trpc, @calcom/tsconfig, @calcom/types, @calcom/ui, @calcom/web, @calcom/zoomvideo
• Running build in 20 packages
• Remote caching disabled
@calcom/prisma:post-install: cache bypass, force executing 50a6dc0edb7f7f83
@calcom/app-store-cli:build: cache bypass, force executing febea47ae711bdb2
@calcom/embed-core:build: cache bypass, force executing 06ca3ea2bb8e7cfb
@calcom/app-store-cli:build: Generated apps.metadata.generated.ts, apps.server.generated.ts, apps.browser.generated.tsx, apps.schemas.generated.ts, apps.keys-schemas.generated.ts
@calcom/prisma:post-install: Environment variables loaded from .env
@calcom/prisma:post-install: Prisma schema loaded from schema.prisma
@calcom/prisma:post-install: ERROR: command finished with error: command (/root/cal.com/packages/prisma) yarn run post-install exited (1)
@calcom/embed-snippet:build: cache hit, replaying output e9560166336b8a8a
@calcom/embed-snippet:build: vite v4.1.2 building for production...
@calcom/embed-snippet:build: transforming...
@calcom/embed-snippet:build: āœ“ 1 modules transformed.
@calcom/embed-snippet:build: rendering chunks...
@calcom/embed-snippet:build: computing gzip size...
@calcom/embed-snippet:build: dist/snippet.es.js  0.85 kB │ gzip: 0.48 kB
@calcom/embed-snippet:build: Entry module "src/index.ts" is using named and default exports together. Consumers of your bundle will have to use `snippet.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
@calcom/embed-snippet:build: dist/snippet.umd.js  0.83 kB │ gzip: 0.52 kB
@calcom/embed-react:build: cache hit, replaying output 6114161c1193d826
@calcom/embed-react:build: vite v4.1.2 building for production...
@calcom/embed-react:build: transforming...
@calcom/embed-react:build: āœ“ 13 modules transformed.
@calcom/embed-react:build: rendering chunks...
@calcom/embed-react:build: computing gzip size...
@calcom/embed-react:build: dist/Cal.es.js  22.84 kB │ gzip: 7.00 kB
@calcom/embed-react:build: dist/Cal.umd.js  14.99 kB │ gzip: 5.99 kB
command (/root/cal.com/packages/prisma) yarn run post-install exited (1)

 Tasks:    3 successful, 4 total
Cached:    2 cached, 4 total
  Time:    1m31.756s 

 ERROR  run failed: command  exited (1)
c
Do you have an database configured and available during the build?