mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1843] pnpm run generate - failing on Ubuntu #587
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#587
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kani on GitHub (Oct 1, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1843
Thank you for this wonderful project, wanted to try this while we wait for the teams feature. We are planning to host our own version for our team.
Following the steps on this section: https://github.com/hoppscotch/hoppscotch#releasing
Getting this error, please help. Tried this using sudo and non root user on Ubuntu 16.04
node: v16.10.0
npm: 7.24.0
ubuntu@host:~/hoppscotch$ sudo pnpm run generate
Scope: all 3 workspace projects
packages/hoppscotch-js-sandbox do-build-prod$ pnpm run build
│ > @hoppscotch/js-sandbox@1.0.0 build /home/ubuntu/hoppscotch/packages/hoppscotch-js-sandbox
│ > npx tsc
└─ Done in 8.6s
packages/hoppscotch-app do-build-prod$ pnpm run generate
│ > hoppscotch-app@2.0.0 generate /home/ubuntu/hoppscotch/packages/hoppscotch-app
│ > nuxt generate --modern
│ ℹ windicss@3.1.7 running with config: windi.config.js
│ WARN Modules should be only specified once: unplugin-vue2-script-setup/nuxt
│ Killed
│ ELIFECYCLE Command failed with exit code 137.
└─ Failed in 8m 21.2s
/home/ubuntu/hoppscotch/packages/hoppscotch-app:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL hoppscotch-app@2.0.0 do-build-prod:
pnpm run generateExit status 1
ELIFECYCLE Command failed with exit code 1.
@liyasthomas commented on GitHub (Oct 1, 2021):
Hi @kani, I can't reproduce this issue at my end. Make sure you have the latest version of NodeJS (>=v14) installed and proper environment variables defined while building the project for release.
You can find the default list of environment variables in
.env.sampleunderpackages/hoppscotch/.@kani commented on GitHub (Oct 2, 2021):
@liyasthomas Thank you!!!
It is working now!
Is there any way to disable the Login using Github option on the site?
Looking forward to see the team feature in action! Thank you for actively supporting this project.
I did the following to get this working.
navigating to https://[domain.com] loads this awesome tool!
$ pnpm run generate
[212 lines collapsed]
│ ✔ Generated route "/vi/documentation"
│ ✔ Generated route "/vi/enter"
│ ✔ Generated route "/vi/graphql"
│ ✔ Generated route "/vi/home"
│ ✔ Generated route "/vi/realtime"
│ ✔ Generated route "/vi/settings"
│ ✔ Generated route "/"
│ ✔ Client-side fallback created: 404.html
│ ℹ Generating sitemaps
│ ✔ Generated /sitemap.xml
└─ Done in 15.4s
@liyasthomas commented on GitHub (Oct 2, 2021):
@kani, glad it worked out for you.
We're working on an in-built self-hostable instance of Hoppscotch for next major product release milestone. This will allow users to configure auth, database and backend providers as per their choice and is configurable. Thanks for your patience, watch the project on GitHub for upcoming updates.
Closing this issue.
@leandro-toledo-uux commented on GitHub (Jan 7, 2022):
Hi @kani , there is something not clear to me yet... are you hosting only the files generated in "dist" directory? I mean, did you get the files from /dist and moved to another directory (the one which apache point to)? What about firebase configuration? I mean, it is not in the dist folder, how it is supposed to work since it is only serving static files... thanks
@kani commented on GitHub (Jan 8, 2022):
@leandro-toledo-uux
You can follow the steps here for hosting your own version,
https://github.com/hoppscotch/hoppscotch/wiki/Hosting
Update .env.example file found in packages/hoppscotch-app with your own keys and rename it to .env.
Here is the contents of my folder if that helps.
I tried it for checking the teams features, not using it now as the teams features is not available for selfhosted version.