fix: broken Dockerfile and final start command

This commit is contained in:
Andrew Bastin
2022-12-02 11:58:02 -05:00
parent 9d8d6832af
commit 36903b338a
7 changed files with 10 additions and 10 deletions

View File

@@ -5,5 +5,5 @@
"features": { "features": {
"ghcr.io/NicoVIII/devcontainer-features/pnpm:1": {} "ghcr.io/NicoVIII/devcontainer-features/pnpm:1": {}
}, },
"postCreateCommand": "cp packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env && pnpm i" "postCreateCommand": "cp .env.example .env && pnpm i"
} }

View File

@@ -17,7 +17,7 @@ COPY . .
RUN npm install -g pnpm RUN npm install -g pnpm
RUN mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env RUN mv .env.example .env
RUN pnpm i --unsafe-perm=true RUN pnpm i --unsafe-perm=true

View File

@@ -11,10 +11,10 @@ if there is no existing translation, you can create a new one by following these
1. **[Fork the repository](https://github.com/hoppscotch/hoppscotch/fork).** 1. **[Fork the repository](https://github.com/hoppscotch/hoppscotch/fork).**
2. **Checkout the `i18n` branch for latest translations.** 2. **Checkout the `i18n` branch for latest translations.**
3. **Create a new branch for your translation with base branch `i18n`.** 3. **Create a new branch for your translation with base branch `i18n`.**
4. **Create target language file in the [`/packages/hoppscotch-app/locales`](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-app/locales) directory.** 4. **Create target language file in the [`/packages/hoppscotch-common/locales`](https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-common/locales) directory.**
5. **Copy the contents of the source file [`/packages/hoppscotch-app/locales/en.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/locales/en.json) to the target language file.** 5. **Copy the contents of the source file [`/packages/hoppscotch-common/locales/en.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/locales/en.json) to the target language file.**
6. **Translate the strings in the target language file.** 6. **Translate the strings in the target language file.**
7. **Add your language entry to [`/packages/hoppscotch-app/languages.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-app/languages.json).** 7. **Add your language entry to [`/packages/hoppscotch-common/languages.json`](https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/languages.json).**
8. **Save & commit changes.** 8. **Save & commit changes.**
9. **Send a pull request.** 9. **Send a pull request.**

View File

@@ -5,9 +5,9 @@
}, },
"hosting": { "hosting": {
"predeploy": [ "predeploy": [
"mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env && npm install -g pnpm && pnpm i && pnpm run generate" "mv .env.example .env && npm install -g pnpm && pnpm i && pnpm run generate"
], ],
"public": "packages/hoppscotch-app/dist", "public": "packages/hoppscotch-web/dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [ "rewrites": [
{ {

View File

@@ -4,7 +4,7 @@
[build] [build]
base = "/" base = "/"
publish = "packages/hoppscotch-app/dist" publish = "packages/hoppscotch-web/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run generate" command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run generate"
[[headers]] [[headers]]

View File

@@ -10,7 +10,7 @@
"prepare": "husky install", "prepare": "husky install",
"dev": "pnpm -r do-dev", "dev": "pnpm -r do-dev",
"generate": "pnpm -r do-build-prod", "generate": "pnpm -r do-build-prod",
"start": "http-server packages/hoppscotch-app/dist -p 3000", "start": "http-server packages/hoppscotch-web/dist -p 3000",
"lint": "pnpm -r do-lint", "lint": "pnpm -r do-lint",
"typecheck": "pnpm -r do-typecheck", "typecheck": "pnpm -r do-typecheck",
"lintfix": "pnpm -r do-lintfix", "lintfix": "pnpm -r do-lintfix",

View File

@@ -5,7 +5,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "node --max_old_space_size=16384 ./node_modules/vite/bin/vite.js build",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint src --ext .ts,.js,.vue --ignore-path .gitignore .", "lint": "eslint src --ext .ts,.js,.vue --ignore-path .gitignore .",
"lint:ts": "vue-tsc --noEmit", "lint:ts": "vue-tsc --noEmit",