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

fix: add placeholder frontend dist for development#5493

Open
thefatcode wants to merge 3 commits intousememos:mainfrom
thefatcode:fix/5492-embedded-frontend-placeholder
Open

fix: add placeholder frontend dist for development#5493
thefatcode wants to merge 3 commits intousememos:mainfrom
thefatcode:fix/5492-embedded-frontend-placeholder

Conversation

@thefatcode
Copy link

Summary

Fixes#5492

This PR adds placeholder files inserver/router/frontend/dist/ so that developers can rungo run cmd/memos/main.go without building the frontend first.

Problem

When running without Docker, executinggo run cmd/memos/main.go fails because the Go embed directive (//go:embed dist/*) cannot find the requireddist directory.

Solution

  • Add.gitkeep to track the dist directory in git
  • Add a placeholderindex.html that displays friendly instructions for building the frontend
  • Update.gitignore to track these placeholder files while still ignoring built assets

Testing

  1. Clone fresh repo
  2. Rungo run cmd/memos/main.go - server starts successfully
  3. Navigate tohttp://localhost:8081 - shows placeholder page with build instructions
  4. Runcd web && pnpm install && pnpm release to build frontend
  5. Restart server - full application works

Refactored video/audio file serving to use streaming via ReadSeekerinstead of loading entire files into memory. For local storage, filesare opened directly for zero-copy streaming. For S3 and databasestorage, content is still loaded into memory as these sources don'tprovide seekable streams. This significantly reduces memory footprintwhen serving large media files.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@johnnyjoyghjohnnyjoyghAwaiting requested review from johnnyjoyghjohnnyjoygh is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

不用docker配置时出现的一些问题

1 participant

@thefatcode

Comments


[8]ページ先頭

©2009-2026 Movatter.jp