mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
workspace: drop gitpod
This commit is contained in:
5 files changed
+54
-53
No files matched your search
-28
@@ -1,28 +0,0 @@
|
||||
image: gitpod/workspace-mongodb
|
||||
tasks:
|
||||
- name: MongoDB
|
||||
init: mkdir -p /home/gitpod/db
|
||||
command: mongod --dbpath /home/gitpod/db
|
||||
- name: App
|
||||
init: |
|
||||
mkdir -p /home/gitpod/.hydro
|
||||
echo '{"host":"127.0.0.1","port":"27017","name":"hydro","username":"","password":""}' >/home/gitpod/.hydro/config.json && \
|
||||
nvm install 18
|
||||
nvm use 18
|
||||
nvm alias default 18
|
||||
yarn
|
||||
yarn build:ui:production
|
||||
npx hydrooj cli system set server.port 2333
|
||||
npx hydrooj cli user create root@hydro.local root rootroot 2
|
||||
npx hydrooj cli user setSuperAdmin 2
|
||||
command: yarn debug
|
||||
env:
|
||||
DEFAULT_STORE_PATH: /home/gitpod/file
|
||||
vscode:
|
||||
extensions:
|
||||
- dbaeumer.vscode-eslint
|
||||
- vscode-icons-team.vscode-icons
|
||||
- samuelcolvin.jinjahtml
|
||||
- tabnine.tabnine-vscode
|
||||
- gruntfuggly.todo-tree
|
||||
- ryanluker.vscode-coverage-gutters
|
||||
+1
-3
@@ -1,6 +1,6 @@
|
||||
# Hydro
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
@@ -18,8 +18,6 @@ Feel free to create an account and then navigate to `MyAccount > MyDomains > Cre
|
||||
|
||||
[中文](https://hydro.js.org/)
|
||||
|
||||
[Open pre-configured test environment in Gitpod](https://gitpod.io/#https://github.com/hydro-dev/Hydro)
|
||||
|
||||
We are now looking for help with Korean and Japanese translation, if you are a native speaker of these languages, please contact us, pull requests are always welcome.
|
||||
|
||||
## Contact US
|
||||
|
||||
Generated
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1739446958,
|
||||
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
description = "Hydro development environment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
packages.${system}.default = pkgs.hello;
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.nodejs
|
||||
pkgs.yarn-berry
|
||||
pkgs.pm2
|
||||
pkgs.git
|
||||
pkgs.gcc
|
||||
pkgs.go-judge
|
||||
pkgs.mongodb-ce
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
pkgs ? import <nixpkgs> {},
|
||||
hydro ? import (pkgs.fetchFromGitHub {
|
||||
owner = "hydro-dev";
|
||||
repo = "nix-channel";
|
||||
rev = "e1cb1ea6ac79c5e64bd25036be00ee98e51cfd71";
|
||||
hash = "sha256-p7Em18OYAtIsA9+8VtHY1gW/NzRHfHKvoK8rsQRgs5Q=";
|
||||
}) {}
|
||||
}:
|
||||
let
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
name = "hydro-workspace";
|
||||
buildInputs = [
|
||||
pkgs.nodejs
|
||||
pkgs.yarn
|
||||
pkgs.pm2
|
||||
pkgs.git
|
||||
pkgs.gcc
|
||||
hydro.mongodb4
|
||||
hydro.sandbox
|
||||
];
|
||||
}
|
||||
Reference in new issue
Block a user