-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
add gitpod config #20995
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
add gitpod config #20995
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c48f208
add gitpod config
anbraten 219c996
set correct gitea root url
anbraten d3b868f
fix frontend reloading and root-url
anbraten a50142f
add requested extensions
anbraten 14cf70a
Merge branch 'main' into gitpod
anbraten 00c1831
Merge branch 'main' into gitpod
6543 9cc14c8
fix setup
anbraten 23bf01b
Merge branch 'main' into gitpod
anbraten 0d8c35c
add build to init to speed up server start
anbraten 2d6ea49
Merge branch 'gitpod' of https://github.com/anbraten/gitea into gitpod
anbraten fb27072
Merge branch 'main' into gitpod
techknowlogick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
image: gitpod/workspace-full:latest | ||
|
||
tasks: | ||
- name: Setup | ||
init: | | ||
make deps | ||
make build | ||
command: | | ||
gp sync-done setup | ||
exit 0 | ||
- name: Run frontend | ||
command: | | ||
gp sync-await setup | ||
make watch-frontend | ||
- name: Run backend | ||
command: | | ||
gp sync-await setup | ||
mkdir -p custom/conf/ | ||
echo -e "[server]\nROOT_URL=https://3000-$GITPOD_WORKSPACE_ID.${GITPOD_WORKSPACE_CLUSTER_HOST}/" > custom/conf/app.ini | ||
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = /workspace/gitea/data/gitea.db" >> custom/conf/app.ini | ||
export TAGS="sqlite sqlite_unlock_notify" | ||
make watch-backend | ||
|
||
vscode: | ||
extensions: | ||
- editorconfig.editorconfig | ||
- dbaeumer.vscode-eslint | ||
- golang.go | ||
- stylelint.vscode-stylelint | ||
- DavidAnson.vscode-markdownlint | ||
|
||
ports: | ||
- name: Gitea | ||
port: 3000 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.