Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: addsite flag tobuildinfo#14868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 2 commits intomainfromethan/buildinfo-site
Oct 1, 2024
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedSep 30, 2024
edited
Loading

As of#14761, the access URL is automatically opened in the browser when runningcoder server. This becomes annoying when running versions of Coder without a frontend during development.

This PR skips opening the URL in the browser when there is no frontend embedded into the binary. Since this is different from aslim build of Coder (i.e. a true slim build is ~40mb, this build is ~120mb), it wouldn't make sense to set the existingslim flag to true. The solution is to add a newsite flag, and ahasSite function tobuildinfo that can be used to detect frontendless builds.

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@ethanndickson and the rest of your teammates onGraphiteGraphite

@ethanndicksonethanndickson marked this pull request as ready for reviewSeptember 30, 2024 08:07
@ethanndicksonethanndickson changed the titlechore: add site flag to buildinfochore: addsite flag tobuildinfoSep 30, 2024
Copy link
Contributor

@dannykoppingdannykopping left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, thanks for addressing this.

Side-note:coder/internal#54 (which you addressed in the previous PR) says to only open the browser on thefirst run. This happens on every run currently, and I think we ought to mention how to disable this.

Perhaps like this?

╔═══════════════════════════════════════════════╗║               View the Web UI:                ║║   https://et23ntkhpueak.pit-1.try.coder.app   ║║   Disable auto-open with `--no-open`          ║╚═══════════════════════════════════════════════╝

Or only do so when the first user has not been created?

ethanndickson reacted with thumbs up emoji
@ethanndickson
Copy link
MemberAuthor

The database doesn't get initialised until a fair bit after we print the access URL, after which a bunch of logs will have streamed in.
I think a message advertisingno-open is very much appropriate, will add!

dannykopping reacted with thumbs up emoji

Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, thanks 👍

@ethanndicksonethanndicksonenabled auto-merge (squash)September 30, 2024 12:36
@ethanndicksonethanndicksonforce-pushed theethan/buildinfo-site branch 2 times, most recently from03ac0f8 to7fa8132CompareOctober 1, 2024 07:29
@ethanndicksonethanndickson merged commit35a5475 intomainOct 1, 2024
27 checks passed
@ethanndicksonethanndickson deleted the ethan/buildinfo-site branchOctober 1, 2024 10:01
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 1, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@dannykopping

[8]ページ先頭

©2009-2025 Movatter.jp