Comments (9)
如果你使用预编译的话,需要确保你本地能够能完整无错的编译出Sshwifty的二进制程序才行。
而Heroku支持Docker部署,Sshwifty也提供了Dockerfile,因此其实你可以通过容器方式进行部署,让Heroku去远程构建。这样一来,你只需要安装一个Heroku命令行,用它把部署模式换成Docker就行了。大致就像这里第三段说的:#5 (comment)
from sshwifty.
谢谢大神~
可是我这里按照步骤部署时,出现了这个错误
|-(0) found 1 low severity vulnerability
|-(0) run npm audit fix
to fix them, or npm audit
for details
|-(0)!info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
|-(0)! ✔ gifsicle pre-build test passed successfully
|-(0)! ✔ jpegtran pre-build test passed successfully
|-(0)! ✔ optipng pre-build test passed successfully
|-(0)! ✔ pngquant pre-build test passed successfully
|-(0)!npm WARN [email protected] No repository field.
|-(0)!npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/node_modules/fsevents):
|-(0)!npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|-(0)!npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
|-(0)!npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|-(0)!
from sshwifty.
你可以看一下部署是否成功了。如果成功了的话,上面的警告是可以忽略的。
另外那个“low severity vulnerability”并不会影响这个程序的安全性,因为受到影响的组件minimist
只在是在构建favicon的过程中用到。
from sshwifty.
嗯嗯,好的,谢谢老板~
明白了~
可是.......部署没成功.....报错了......
Browserslist: caniuse-lite is outdated. Please run next command npm update
啊啊啊,本人是个小白啊,真的很感激~
谢谢大神~
from sshwifty.
你可以去Heroku的后台看一下构建和部署日志。
Browserslist: caniuse-lite is outdated. Please run next command npm update
说的只是caniuse-lite
已经过期了,但是用旧版本不会影响构建。我这边会一直使用最新的依赖,但是如果依赖的依赖没有更新,我没有办法阻止由此产生的构建警告。
from sshwifty.
呃,大神,我这步以后就卡住了,然后半小时以后又自动重新开始上面remote的内容,三小时了,一直在循环...
from sshwifty.
那很奇怪。
你可不可以试一试用干净的代码重新构建一下呢?就是说,你那边重新下载这个项目的代码,然后用新的代码去让Heroku构建。
另外如果方便的话,请提供一下最后的构建日志,这样我也方便检查问题。最好能提供至少最后1000行吧。
Demo那个程序的部署过程和文件跟现在仓库里的代码是一样的。理论上不需要任何配置,因为需要设置的部分都已经设置好了,直接下载代码、装好Heroku的cli,把部署模式改成Container,然后git push heroku master
就行了。
BTW: 如果你的部署成功了,你需要手动去Heroku后台添加一个环境变量,可以参考下#5 (comment) 里面提到的。不过这是你等部署成功之后才需要做的。
from sshwifty.
哇⊙∀⊙!
谢谢大神啦~
我刚才重新git clone下来一次,又重试了一次,成功啦😃不知道之前怎么回事😂
谢谢大神~
from sshwifty.
可能是之前你尝试手动Generate的时候,产生了一些临时的代码,而之后因为部署方式变更了,那些临时代码与新的部署方式不匹配,因而引发了错误。
现在问题解决了就好。我这边就先把这个Issue关闭了。如果你发现这个问题实际并没有解决,请重新打开。
from sshwifty.
Related Issues (20)
- Do you hide your docker image? HOT 2
- Set User pass on Docker HOT 1
- Authentication 选择 Password 被识别为 None HOT 3
- 有没有可能开发这样的功能 HOT 5
- Feature request: light mode HOT 1
- 能否在URL里面带上登录用的参数? HOT 1
- webssh无法连接ipv6机器,显示:connect: cannot assign requested address HOT 5
- MacOS : safari cannot find server HOT 14
- Add homebrew as an install method for macOS HOT 8
- can I generate address with ID, IP address for the direct connect HOT 1
- Default password HOT 4
- time difference - how to sync docker time ? no timezone parameter for this project ? HOT 6
- [enter] keypress is not immediately sent to target HOT 4
- Remote font error on Edge browser HOT 7
- Connecting to the Local Host HOT 1
- Unable to connect to the Sshwifty backend server: TypeError: Cannot read properties of undefined (reading 'importKey') HOT 6
- Terminal canvas not scaling properly on firefox HOT 1
- no common algorithm for key exchange HOT 2
- Terminal optimization suggestions HOT 5
- Network issue : Not sure if it is a bug or I am looking for a feature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sshwifty.