Comments (25)
应该是可以的,连数据库时会优先找这几个环境变量:
HITCHHIKER_DB_HOST
HITCHHIKER_DB_PORT
HITCHHIKER_DB_USERNAME
MYSQL_DATABASE
MYSQL_ROOT_PASSWORD
所以只需要改下 docker-compose.yml 文件,在hitchhiker的container里加上env:
HITCHHIKER_DB_USERNAM
以及MYSQL_ROOT_PASSWORD
就可以了
from hitchhiker.
ok
from hitchhiker.
对了,mysql的container也得改下
from hitchhiker.
我有自己的数据库,不用再启动一个了,我去试试不用compose
from hitchhiker.
用的是这个 MYSQL_ROOT_PASSWORD
, 因为想到可能会和mysql装一起,mysql用的这个
from hitchhiker.
貌似不行,启动的时候,直接使用root去连的HITCHHIKER_DB_USERNAM这个好像不起作用
from hitchhiker.
HITCHHIKER_DB_USERNAM 少了一个E
,而且这个是name哦,也就是root,数据库的话是MYSQL_DATABASE
from hitchhiker.
加些说明
HITCHHIKER_DB_HOST DB的host
HITCHHIKER_DB_PORT DB的端口
MYSQL_DATABASE DB数据库的名字
HITCHHIKER_DB_USERNAME DB的user name, eg: root
MYSQL_ROOT_PASSWORD DB的密码
from hitchhiker.
部署好了,注册时候,TypeError: Failed to fetch
from hitchhiker.
可否看下浏览器的控制台,把错误消息截个图我看下
from hitchhiker.
我知道了,APP_HOST没有设置
from hitchhiker.
对的,需要一个HITCHHIKER_APP_HOST
from hitchhiker.
部署好了,post请求formdata类型,该怎么填写
from hitchhiker.
对form这块还不太完善,需要在header里写content-type: multipart/form-data
from hitchhiker.
那参数呢,写在body里,a=b&c=d?
from hitchhiker.
字体看起来有点费劲,个人意见
from hitchhiker.
这个需要写在url里,也可以设置到变量里
from hitchhiker.
好的,知道了,希望越来越好!
from hitchhiker.
是吗,用的一个程序员专用的等宽开源字体,刚开始我看得也不太习惯,不过回头再找找看有没有更好些的开源字体
from hitchhiker.
谢谢:)
from hitchhiker.
写代码倒是可以用这个字体,但是用来网站显示可能有点不大好,其实不用刻意使用字体,默认就好吧
from hitchhiker.
也是,大家都习惯了默认的字体,回头去掉试试看
from hitchhiker.
可以close了, :)
from hitchhiker.
嗯:)
from hitchhiker.
嗯:)
[2019-05-06 09:47:50.369] [ERROR] console - Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json NOT NULL, createDate
datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `' at line 1
对mysql版本有要求吗,创建账户后,mysql报错
from hitchhiker.
Related Issues (20)
- 压力测试运行时node端报$字符错误
- 2000条用例导致登录会消耗很长时间约1.5分钟 HOT 4
- docker安装无法发邮件 HOT 6
- 请问将服务器部署在阿里云上怎么进行本地调试?
- 负载均衡时Session过期问题
- 参数化数据类型丢失导致无法使用
- 在Collections目录下切换Environment无法立即生效
- body 请允许可以写 注释 HOT 1
- 启动连接11010 端口失败?
- 接口返回http code 为 500时,自动化测试认为失败了
- 文档页面打不开了
- linux系统部署Hitchhiker有部署文档的链接吗,https://github.com/brookshi/Hitchhiker/blob/master/doc/howtoinstall-linux-cn.md 这个链接报404 HOT 1
- docker部署,创建账户后,报sql错误:[2019-05-06 09:47:50.369] [ERROR] console - Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json NOT NULL, createDate datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), `' at line 1
- 部署成功后,谷歌浏览器点击不登录试用或者直接注册,都会调到一个页面但是资源加载不出来,看console下有报错403 HOT 5
- 请问这个项目还在维护和更新吗?
- JavaScript heap out of memory
- 脚本执行顺序
- collection级别脚本修改url时,会清空hitchhiker.request
- 怎么用js获取当前环境的IP? HOT 1
- 用“raw”模式 post 成功后,返回内容在“内容”页签没有输出,但切换为“x-www-form-urlencoded”时会重放打印“raw”的响应内容
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 hitchhiker.