Closed TheShadowbyte closed 1 year ago
Same happens for me, I've set the NEXT_PUBLIC_WEBAPP_URL to a custom url, but still uses localhost here
@krumware do we still have issues with .env?
@PeerRich We still need a way to configure those env's at runtime properly. Right now we're doing a string replacement in the files at runtime. I figured this is still in the roadmap just maybe isn't considered priority (if not, I still think it should be a priority)
@cyango @TheShadowbyte, I'm sorry you're seeing this, I need some more information to help figure out how you're still experiencing that. For example, I am no longer experiencing this in multiple production environments and I am using the public image.
If you could point out where the screenshot was taken it would be helpful too. It looks like it might be from the signup screen on an older version possibly (the text color has since been restyled to more of a grey).
hopefully helpful for log reference, here's a complete startup log on a fresh instance with fresh db. this is deployed in kubernetes. worth noting this also uses:
NEXT_PUBLIC_WEBAPP_URL: https://test.redacted.redacted.io NEXTAUTH_URL: http://localhost:3000/api/auth
special emphasis on the first two lines here, for the variable replacement.
+ scripts/replace-placeholder.sh http://localhost:3000 https://test.redacted.redacted.io
Replacing all statically built instances of http://localhost:3000 with https://test.redacted.redacted.io.
+ scripts/wait-for-it.sh calendso-test-postgresql:5432 -- echo database is up
database is up
+ npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
Prisma schema loaded from packages/prisma/schema.prisma
Datasource "db": PostgreSQL database "postgres", schema "public" at "calendso-test-postgresql:5432"
151 migrations found in prisma/migrations
Applying migration `20210605225044_init`
Applying migration `20210605225507_added_bookings`
Applying migration `20210606013704_made_booking_uid_unique`
Applying migration `20210613133618_add_team_membership_verification`
Applying migration `20210615140247_added_selected_calendar`
Applying migration `20210615142134_added_custom_event_name`
Applying migration `20210615153546_added_buffer_time`
Applying migration `20210615153759_add_email_verification_column`
Applying migration `20210618140954_added_event_type_custom`
Applying migration `20210628153550_password_reset_request`
Applying migration `20210629160507_hide_branding`
Applying migration `20210630014738_schedule_availability`
Applying migration `20210709231256_add_user_theme`
Applying migration `20210714151216_event_type_period_settings`
Applying migration `20210717120159_booking_confirmation`
Applying migration `20210718184017_reminder_mails`
Applying migration `20210722225431_minimum_booking_notice`
Applying migration `20210725123357_add_location_to_booking`
Applying migration `20210813142905_event_payment`
Applying migration `20210813194355_add_slug_to_team`
Applying migration `20210814175645_custom_inputs_type_enum`
Applying migration `20210820130519_add_placeholder_to_custom_event_types`
Applying migration `20210824054220_add_bio_branding_logo_to_team`
Applying migration `20210825004801_schedule_schema`
Applying migration `20210830064354_add_unique_to_team_slug`
Applying migration `20210902112455_event_type_unique_user_id_slug`
Applying migration `20210902121313_user_plan`
Applying migration `20210902125945_user_username_unique`
Applying migration `20210904162403_add_booking_status_enum`
Applying migration `20210908042159_teams_feature`
Applying migration `20210908220336_add_daily_data_table`
Applying migration `20210908235519_undo_unique_user_id_slug`
Applying migration `20210913211650_add_meeting_info`
Applying migration `20210918013258_add_two_factor_fields`
Applying migration `20210918152354_user_id_slug_fix`
Applying migration `20210919174415_add_user_locale`
Applying migration `20210922004424_add_disable_guests_to_event_type`
Applying migration `20211004231654_add_webhook_model`
Applying migration `20211011152041_non_optionals`
Applying migration `20211028233838_add_user_webhooks_relation`
Applying migration `20211101151249_update_rejected_bookings`
Applying migration `20211105200545_availability_start_and_end_time_as_time`
Applying migration `20211106121119_add_event_type_position`
Applying migration `20211110063531_add_custom_brand_color`
Applying migration `20211110142845_add_identity_provider_columns`
Applying migration `20211111013358_period_type_enum`
Applying migration `20211112145539_add_saml_login`
Applying migration `20211115182559_availability_issue`
Applying migration `20211120211639_add_payload_template`
Applying migration `20211207010154_add_destination_calendar`
Applying migration `20211209201138_membership_admin_role`
Applying migration `20211210182230_add_invited_to`
Applying migration `20211217201940_upgrade_to_v3`
Applying migration `20211217215952_added_slot_interval_to_event_type`
Applying migration `20211220192703_email_to_lowercase`
Applying migration `20211222174947_placeholder`
Applying migration `20211222181246_add_sc_address`
Applying migration `20211228004752_adds_user_metadata`
Applying migration `20211231142312_add_user_on_delete_cascade`
Applying migration `20220105104913_add_away_field`
Applying migration `20220113145333_rename_column_sc_address_to_smart_contract_address`
Applying migration `20220117193242_trial_users_by_default`
Applying migration `20220121210720_add_cancellation_reason`
Applying migration `20220125035907_add_attendee_locale`
Applying migration `20220131170110_add_metadata_column_to_event_type`
Applying migration `20220205135022_add_verified_column`
Applying migration `20220209082843_add_rejection_reason`
Applying migration `20220217093836_add_webhook_for_event`
Applying migration `20220228122419_add_time_format`
Applying migration `20220302035831_add_before_and_after_event_buffer`
Applying migration `20220302110201_add_dark_mode_brand_color`
Applying migration `20220303171305_adds_user_trial_ends_at`
Applying migration `20220305233635_availability_schedules`
Applying migration `20220305233635_rename_indexes`
Applying migration `20220306010113_renames_verification_request_to_verification_token`
Applying migration `20220323033335_reschedule_fields_to_bookings_table`
Applying migration `20220323162642_events_hide_notes`
Applying migration `20220328185001_soft_delete_booking_references`
Applying migration `20220330071743_add_dynamic_group_booking`
Applying migration `20220404132522_redirect_url`
Applying migration `20220409155714_impersonate_users`
Applying migration `20220409195425_index_event_types_team_id_slug`
Applying migration `20220412172742_payment_on_delete_cascade`
Applying migration `20220413002425_adds_api_keys`
Applying migration `20220413173832_add_seats_to_event_type_model`
Applying migration `20220420152505_add_hashed_event_url`
Applying migration `20220420230104_update_booking_id_constrain`
Applying migration `20220420230105_rename_verification_token_unique_id`
Applying migration `20220423022403_recurring_event`
Applying migration `20220423175732_added_next_auth_models`
Applying migration `20220502154345_adds_apps`
Applying migration `20220503183922_add_external_calendar_id_to_booking_reference`
Applying migration `20220503194835_adds_app_relation_to_webhook_and_api_keys`
Applying migration `20220511095513_add_custom_inputs_to_booking`
Applying migration `20220513151152_adds_feedback_table`
Applying migration `20220518201335_add_user_relationship_to_feedback`
Applying migration `20220525110759_add_user_impersonation_toggle`
Applying migration `20220525182228_cal_video_preinstalled`
Applying migration `20220526151550_cascades_impersonations_on_user_delete`
Applying migration `20220604144700_fixes_booking_status`
Applying migration `20220604210102_removes_booking_confirmed_rejected`
Applying migration `20220614090326_add_webhook_secret`
Applying migration `20220616072241_app_routing_forms`
Applying migration `20220620181226_add_all_userid_to_users`
Applying migration `20220622110735_allow_one_schedule_to_apply_to_multiple_event_types`
Applying migration `20220628184929_adds_missing_owner_relationship`
Applying migration `20220628190334_adds_missing_oncascades`
Applying migration `20220628191702_adds_default_date_to_feedback`
Applying migration `20220629151617_connect_destination_calendar_to_credential`
Applying migration `20220711182928_add_workflows`
Applying migration `20220714175322_destination_calendar_one_to_many_bookings`
Applying migration `20220719110415_form_submitted_webhook`
Applying migration `20220719144253_disabled_impersonation_teams`
Applying migration `20220721183745_`
Applying migration `20220723001233_`
Applying migration `20220728111440_add_created_at_form_response`
Applying migration `20220803090845_migrate_daily_event_reference_to_booking_reference`
Applying migration `20220803091114_drop_daily_event_reference`
Applying migration `20220811132430_add_unique_index_to_webhook`
Applying migration `20220811234822_add_after_meeting_ends_trigger`
Applying migration `20220817201039_`
Applying migration `20220827082641_reschedule_workflow_trigger_added`
Applying migration `20220912134714_add_automation_category`
Applying migration `20220913034937_move_n8n_zapier_to_automation_category`
Applying migration `20220914215052_convert_pro_plan_to_free`
Applying migration `20220917042621_rename_routing_forms_slug`
Applying migration `20220917201512_revert_convert_pro_plan_to_free`
Applying migration `20220926105434_add_booking_limit`
Applying migration `20220929132137_add_seats_hide_attendees`
Applying migration `20221006044939_routing_form_type_migration`
Applying migration `20221006121954_add_after_event_ends_workflow_trigger`
Applying migration `20221006133952_add_analytics_category`
Applying migration `20221007112203_add_email_address_workflow_action`
Applying migration `20221011001632_make_team_name_slug_required`
Applying migration `20221011012344_add_membership_cascade`
Applying migration `20221017115710_add_number_required_to_workflow_step`
Applying migration `20221017205314_add_invalid_field_credential_table`
Applying migration `20221028093727_add_routing_form_settings`
Applying migration `20221107201132_add_team_subscription_cols`
Applying migration `20221110164757_add_sender_to_workflow_step`
Applying migration `20221111152547_add_enabled_col_to_apps`
Applying migration `20221121115813_`
Applying migration `20221129112344_adding_radio_custom_input`
Applying migration `20221129125935_add_metadata_to_booking`
Applying migration `20221201191836_credential_invalid_col_default_false`
Applying migration `20221206152547_set_enabled_to_current_apps`
Applying migration `20221208221811_remove_user_plan`
Applying migration `20221214210020_set_seats_show_attendees_to_default_false`
Applying migration `20221215120525_add_verified_numbers`
Applying migration `20230105203125_add_hide_book_a_team_member`
Applying migration `20230105212846_add_availability_schedule_indexes`
The following migrations have been applied:
migrations/
└─ 20210605225044_init/
└─ migration.sql
└─ 20210605225507_added_bookings/
└─ migration.sql
└─ 20210606013704_made_booking_uid_unique/
└─ migration.sql
└─ 20210613133618_add_team_membership_verification/
└─ migration.sql
└─ 20210615140247_added_selected_calendar/
└─ migration.sql
└─ 20210615142134_added_custom_event_name/
└─ migration.sql
└─ 20210615153546_added_buffer_time/
└─ migration.sql
└─ 20210615153759_add_email_verification_column/
└─ migration.sql
└─ 20210618140954_added_event_type_custom/
└─ migration.sql
└─ 20210628153550_password_reset_request/
└─ migration.sql
└─ 20210629160507_hide_branding/
└─ migration.sql
└─ 20210630014738_schedule_availability/
└─ migration.sql
└─ 20210709231256_add_user_theme/
└─ migration.sql
└─ 20210714151216_event_type_period_settings/
└─ migration.sql
└─ 20210717120159_booking_confirmation/
└─ migration.sql
└─ 20210718184017_reminder_mails/
└─ migration.sql
└─ 20210722225431_minimum_booking_notice/
└─ migration.sql
└─ 20210725123357_add_location_to_booking/
└─ migration.sql
└─ 20210813142905_event_payment/
└─ migration.sql
└─ 20210813194355_add_slug_to_team/
└─ migration.sql
└─ 20210814175645_custom_inputs_type_enum/
└─ migration.sql
└─ 20210820130519_add_placeholder_to_custom_event_types/
└─ migration.sql
└─ 20210824054220_add_bio_branding_logo_to_team/
└─ migration.sql
└─ 20210825004801_schedule_schema/
└─ migration.sql
└─ 20210830064354_add_unique_to_team_slug/
└─ migration.sql
└─ 20210902112455_event_type_unique_user_id_slug/
└─ migration.sql
└─ 20210902121313_user_plan/
└─ migration.sql
└─ 20210902125945_user_username_unique/
└─ migration.sql
└─ 20210904162403_add_booking_status_enum/
└─ migration.sql
└─ 20210908042159_teams_feature/
└─ migration.sql
└─ 20210908220336_add_daily_data_table/
└─ migration.sql
└─ 20210908235519_undo_unique_user_id_slug/
└─ migration.sql
└─ 20210913211650_add_meeting_info/
└─ migration.sql
└─ 20210918013258_add_two_factor_fields/
└─ migration.sql
└─ 20210918152354_user_id_slug_fix/
└─ migration.sql
└─ 20210919174415_add_user_locale/
└─ migration.sql
└─ 20210922004424_add_disable_guests_to_event_type/
└─ migration.sql
└─ 20211004231654_add_webhook_model/
└─ migration.sql
└─ 20211011152041_non_optionals/
└─ migration.sql
└─ 20211028233838_add_user_webhooks_relation/
└─ migration.sql
└─ 20211101151249_update_rejected_bookings/
└─ migration.sql
└─ 20211105200545_availability_start_and_end_time_as_time/
└─ migration.sql
└─ 20211106121119_add_event_type_position/
└─ migration.sql
└─ 20211110063531_add_custom_brand_color/
└─ migration.sql
└─ 20211110142845_add_identity_provider_columns/
└─ migration.sql
└─ 20211111013358_period_type_enum/
└─ migration.sql
└─ 20211112145539_add_saml_login/
└─ migration.sql
└─ 20211115182559_availability_issue/
└─ migration.sql
└─ 20211120211639_add_payload_template/
└─ migration.sql
└─ 20211207010154_add_destination_calendar/
└─ migration.sql
└─ 20211209201138_membership_admin_role/
└─ migration.sql
└─ 20211210182230_add_invited_to/
└─ migration.sql
└─ 20211217201940_upgrade_to_v3/
└─ migration.sql
└─ 20211217215952_added_slot_interval_to_event_type/
└─ migration.sql
└─ 20211220192703_email_to_lowercase/
└─ migration.sql
└─ 20211222174947_placeholder/
└─ migration.sql
└─ 20211222181246_add_sc_address/
└─ migration.sql
└─ 20211228004752_adds_user_metadata/
└─ migration.sql
└─ 20211231142312_add_user_on_delete_cascade/
└─ migration.sql
└─ 20220105104913_add_away_field/
└─ migration.sql
└─ 20220113145333_rename_column_sc_address_to_smart_contract_address/
└─ migration.sql
└─ 20220117193242_trial_users_by_default/
└─ migration.sql
└─ 20220121210720_add_cancellation_reason/
└─ migration.sql
└─ 20220125035907_add_attendee_locale/
└─ migration.sql
└─ 20220131170110_add_metadata_column_to_event_type/
└─ migration.sql
└─ 20220205135022_add_verified_column/
└─ migration.sql
└─ 20220209082843_add_rejection_reason/
└─ migration.sql
└─ 20220217093836_add_webhook_for_event/
└─ migration.sql
└─ 20220228122419_add_time_format/
└─ migration.sql
└─ 20220302035831_add_before_and_after_event_buffer/
└─ migration.sql
└─ 20220302110201_add_dark_mode_brand_color/
└─ migration.sql
└─ 20220303171305_adds_user_trial_ends_at/
└─ migration.sql
└─ 20220305233635_availability_schedules/
└─ migration.sql
└─ 20220305233635_rename_indexes/
└─ migration.sql
└─ 20220306010113_renames_verification_request_to_verification_token/
└─ migration.sql
└─ 20220323033335_reschedule_fields_to_bookings_table/
└─ migration.sql
└─ 20220323162642_events_hide_notes/
└─ migration.sql
└─ 20220328185001_soft_delete_booking_references/
└─ migration.sql
└─ 20220330071743_add_dynamic_group_booking/
└─ migration.sql
└─ 20220404132522_redirect_url/
└─ migration.sql
└─ 20220409155714_impersonate_users/
└─ migration.sql
└─ 20220409195425_index_event_types_team_id_slug/
└─ migration.sql
└─ 20220412172742_payment_on_delete_cascade/
└─ migration.sql
└─ 20220413002425_adds_api_keys/
└─ migration.sql
└─ 20220413173832_add_seats_to_event_type_model/
└─ migration.sql
└─ 20220420152505_add_hashed_event_url/
└─ migration.sql
└─ 20220420230104_update_booking_id_constrain/
└─ migration.sql
└─ 20220420230105_rename_verification_token_unique_id/
└─ migration.sql
└─ 20220423022403_recurring_event/
└─ migration.sql
└─ 20220423175732_added_next_auth_models/
└─ migration.sql
└─ 20220502154345_adds_apps/
└─ migration.sql
└─ 20220503183922_add_external_calendar_id_to_booking_reference/
└─ migration.sql
└─ 20220503194835_adds_app_relation_to_webhook_and_api_keys/
└─ migration.sql
└─ 20220511095513_add_custom_inputs_to_booking/
└─ migration.sql
└─ 20220513151152_adds_feedback_table/
└─ migration.sql
└─ 20220518201335_add_user_relationship_to_feedback/
└─ migration.sql
└─ 20220525110759_add_user_impersonation_toggle/
└─ migration.sql
└─ 20220525182228_cal_video_preinstalled/
└─ migration.sql
└─ 20220526151550_cascades_impersonations_on_user_delete/
└─ migration.sql
└─ 20220604144700_fixes_booking_status/
└─ migration.sql
└─ 20220604210102_removes_booking_confirmed_rejected/
└─ migration.sql
└─ 20220614090326_add_webhook_secret/
└─ migration.sql
└─ 20220616072241_app_routing_forms/
└─ migration.sql
└─ 20220620181226_add_all_userid_to_users/
└─ migration.sql
└─ 20220622110735_allow_one_schedule_to_apply_to_multiple_event_types/
└─ migration.sql
└─ 20220628184929_adds_missing_owner_relationship/
└─ migration.sql
└─ 20220628190334_adds_missing_oncascades/
└─ migration.sql
└─ 20220628191702_adds_default_date_to_feedback/
└─ migration.sql
└─ 20220629151617_connect_destination_calendar_to_credential/
└─ migration.sql
└─ 20220711182928_add_workflows/
└─ migration.sql
└─ 20220714175322_destination_calendar_one_to_many_bookings/
└─ migration.sql
└─ 20220719110415_form_submitted_webhook/
└─ migration.sql
└─ 20220719144253_disabled_impersonation_teams/
└─ migration.sql
└─ 20220721183745_/
└─ migration.sql
└─ 20220723001233_/
└─ migration.sql
└─ 20220728111440_add_created_at_form_response/
└─ migration.sql
└─ 20220803090845_migrate_daily_event_reference_to_booking_reference/
└─ migration.sql
└─ 20220803091114_drop_daily_event_reference/
└─ migration.sql
└─ 20220811132430_add_unique_index_to_webhook/
└─ migration.sql
└─ 20220811234822_add_after_meeting_ends_trigger/
└─ migration.sql
└─ 20220817201039_/
└─ migration.sql
└─ 20220827082641_reschedule_workflow_trigger_added/
└─ migration.sql
└─ 20220912134714_add_automation_category/
└─ migration.sql
└─ 20220913034937_move_n8n_zapier_to_automation_category/
└─ migration.sql
└─ 20220914215052_convert_pro_plan_to_free/
└─ migration.sql
└─ 20220917042621_rename_routing_forms_slug/
└─ migration.sql
└─ 20220917201512_revert_convert_pro_plan_to_free/
└─ migration.sql
└─ 20220926105434_add_booking_limit/
└─ migration.sql
└─ 20220929132137_add_seats_hide_attendees/
└─ migration.sql
└─ 20221006044939_routing_form_type_migration/
└─ migration.sql
└─ 20221006121954_add_after_event_ends_workflow_trigger/
└─ migration.sql
└─ 20221006133952_add_analytics_category/
└─ migration.sql
└─ 20221007112203_add_email_address_workflow_action/
└─ migration.sql
└─ 20221011001632_make_team_name_slug_required/
└─ migration.sql
└─ 20221011012344_add_membership_cascade/
└─ migration.sql
└─ 20221017115710_add_number_required_to_workflow_step/
└─ migration.sql
└─ 20221017205314_add_invalid_field_credential_table/
└─ migration.sql
└─ 20221028093727_add_routing_form_settings/
└─ migration.sql
└─ 20221107201132_add_team_subscription_cols/
└─ migration.sql
└─ 20221110164757_add_sender_to_workflow_step/
└─ migration.sql
└─ 20221111152547_add_enabled_col_to_apps/
└─ migration.sql
└─ 20221121115813_/
└─ migration.sql
└─ 20221129112344_adding_radio_custom_input/
└─ migration.sql
└─ 20221129125935_add_metadata_to_booking/
└─ migration.sql
└─ 20221201191836_credential_invalid_col_default_false/
└─ migration.sql
└─ 20221206152547_set_enabled_to_current_apps/
└─ migration.sql
└─ 20221208221811_remove_user_plan/
└─ migration.sql
└─ 20221214210020_set_seats_show_attendees_to_default_false/
└─ migration.sql
└─ 20221215120525_add_verified_numbers/
└─ migration.sql
└─ 20230105203125_add_hide_book_a_team_member/
└─ migration.sql
└─ 20230105212846_add_availability_schedule_indexes/
└─ migration.sql
All migrations have been successfully applied.
+ npx ts-node --transpile-only /calcom/packages/prisma/seed-app-store.ts
📲 Upserted app: 'apple-calendar'
📲 Upserted app: 'caldav-calendar'
📲 Upserted app: 'google-calendar'
📲 Upserted app: 'google-meet'
📲 Upserted app: 'jitsi'
📲 Upserted app: 'wipe-my-cal'
📲 Upserted app: 'huddle01'
📲 Upserted app: 'routing-forms'
📲 Upserted app: 'whereby'
📲 Upserted app: 'around'
📲 Upserted app: 'riverside'
📲 Upserted app: 'typeform'
📲 Upserted app: 'ping'
📲 Upserted app: 'campfire'
📲 Upserted app: 'rainbow'
📲 Upserted app: 'raycast'
📲 Upserted app: 'n8n'
📲 Upserted app: 'exchange'
📲 Upserted app: 'qr_code'
📲 Upserted app: 'weather_in_your_calendar'
📲 Upserted app: 'fathom'
📲 Upserted app: 'plausible'
📲 Upserted app: 'wordpress'
📲 Upserted app: 'ga4'
📲 Upserted app: 'pipedream'
📲 Upserted app: 'sirius_video'
📲 Upserted app: 'sendgrid'
📲 Upserted app: 'closecom'
📲 Upserted app: 'whatsapp'
📲 Upserted app: 'telegram'
📲 Upserted app: 'signal'
📲 Upserted app: 'vimcal'
📲 Upserted app: 'amie'
Skipping Routing Form - Seeding - Pro User not found
+ yarn start
yarn run v1.22.19
$ turbo run start --scope="@calcom/web"
WARNING cannot find a .git folder. Falling back to manual file hashing (which may be slower). If you are running this build in a pruned directory, you can ignore this message. Otherwise, please initialize a git repository in the root of your monorepo
• Packages in scope: @calcom/web
• Running start in 1 packages
@calcom/prisma:db-deploy: cache bypass, force executing e746bdb46a093b28
@calcom/prisma:db-deploy: $ yarn prisma migrate deploy
@calcom/prisma:db-deploy: $ /calcom/node_modules/.bin/prisma migrate deploy
@calcom/prisma:db-deploy: Prisma schema loaded from schema.prisma
@calcom/prisma:db-deploy: Datasource "db": PostgreSQL database "postgres", schema "public" at "calendso-test-postgresql:5432"
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy: 151 migrations found in prisma/migrations
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy:
@calcom/prisma:db-deploy: No pending migrations to apply.
@calcom/web:start: cache bypass, force executing d79f9c7b3e8bdda1
@calcom/web:start: $ next start
@calcom/web:start: ready - started server on 0.0.0.0:3000, url: http://localhost:3000
@calcom/web:start: react-i18next:: You will need to pass in an i18next instance by using initReactI18next
This happens to me in the the Profile Settings
and when I login and it redirects me to localhost instead.
I'm using the latest version of the Docker image as of today.
In my case NEXT_PUBLIC_WEBAPP_URL and NEXTAUTH_URL are the same public url using https.
Thanks for the extra info! I'll check that out again on my deployment
We still need a way to configure those env's at runtime properly
we should prioritize this higher @zomars
We still need a way to configure those env's at runtime properly
we should prioritize this higher @zomars
I'm open to suggestions. Not that well versed in docker TBH
Another localhost found:
i think this comes from the same underlying docker issue
I'm still not getting that on my test instances
I'm not trying to do a "works on my machine" thing here though either. Is there any ways you can check your container's logs to make sure the scripts/replace-placeholder.sh is running?
Are you by chance specifying a different command
or entrypoint
?
Maybe this log helps:
That does help. Are you setting an env for the placeholder value NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER or BUILT_NEXT_PUBLIC_WEBAPP_URL, in addition to NEXT_PUBLIC_WEBAPP_URL?
Of so, try removing those, or setting BUILT_NEXT_PUBLIC_WEBAPP_URL it back to http://localhost:3000
But now when I log in it redirects me to localhost. when I go to the url, I can enter (because of the login cookie session), but the localhost strings are still in many places.
Here is my complete env
These are my .env for URL's, inside my docker/.env file I see that you are probably missing NEXT_PUBLIC_APP_URL @cyango
Here is the file where the replacement happens https://github.com/calcom/docker/blob/main/scripts/start.sh
In your first screenshot of the logs with the replacement, we should at least see the value you specified for the BUILT_, but we see an extra space. Are you using an orchestrator that is caching the image state between restarts?
You could also try shelling into the container and referencing the file about to try the find replace commands on your own, or inspect the static files it's referencing, to help debug.
I have some time to do a screen share tomorrow, if you hop into the slack. It's certainly not intentional to have this much effort for the URL config, something is funky.
These are my .env for URL's, inside my docker/.env file I see that you are probably missing NEXT_PUBLIC_APP_URL @cyango
Nope still the same...
@cyango Can you share with us what commands you execute to trigger the restart of the docker container?
In this case I use portainer to start the container. I don't use any specific commands.
Seems like last update fixed it. Now I don't have localhost anywhere. Thanks for your support!
So awesome to hear that! @cyango I'm running a deployment test on portainer, I didn't knew that tool and it looks good!
Will close since reported issue is no longer happening reopen issue if required.
I tried rebuilding the image with the new update that @cyango mentioned and I still cannot get my production environment to work. I followed the advanced users section on the calcom docker readme. Since it still doesn't work for me, I am reopening the issue.
Is there anything that I can provide to help with troubleshooting?
The NEXT_PUBLIC_WEBAPP_URL variable in .env is by default set to http://localhost:3000 - any change to a production domain causes the site not to load and leaving it as localhost leaves the site plagued with localhost links.
Please advice how this can be deployed to a production domain Docker environment.
Edit: I've read another issue on here about how this is an issue with the Next frontend, but I'm not 100% sure if any solutions were settled on or if it's still an open issue.