Code Monkey home page Code Monkey logo

Comments (17)

xiaojue avatar xiaojue commented on May 10, 2024 13

@linmiss

docker pull xiaojue/easy-mock
docker pull mongo

docker run -v /your/db/path:/data/db --name mongo -d mongo mongo --smallfiles
docker run --link mongo:mongo -p 7300:7300 -d xiaojue/easy-mock

/your/db/path 换成你本地数据库要设置的path就行了。

from easy-mock.

DuanPengfei avatar DuanPengfei commented on May 10, 2024 3

大家要的 Docker 容器部署来了

from easy-mock.

chuangker avatar chuangker commented on May 10, 2024 1

@DuanPengfei 辛苦了。

大家可以关注 Easy Mock Docker,以及 DockerHub

from easy-mock.

chuangker avatar chuangker commented on May 10, 2024

正在弄。

from easy-mock.

xiaojue avatar xiaojue commented on May 10, 2024

建议把配置单独拿出来啊,或者做成环境变量,要不docker太难整。我自己clone了一份已经用docker起来了。。

from easy-mock.

linmiss avatar linmiss commented on May 10, 2024

谢啦!

from easy-mock.

leenux avatar leenux commented on May 10, 2024

同问

from easy-mock.

xiaojue avatar xiaojue commented on May 10, 2024

@leenux 用我这个应该就成。

from easy-mock.

li-xunhuan avatar li-xunhuan commented on May 10, 2024

@xiaojue 我无法登陆诶。

from easy-mock.

linmiss avatar linmiss commented on May 10, 2024

服务起来了,但是注册 server error @xiaojue

from easy-mock.

ouhuiju avatar ouhuiju commented on May 10, 2024

@xiaojue 谢谢你的docker,不过我start后报了一个warning:
WARNING: NODE_ENV value of 'production' did not match any deployment config file names. WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode

请问我是需要配置一些东西吗?

from easy-mock.

DuanPengfei avatar DuanPengfei commented on May 10, 2024

@ouhuiju 这个错误是因为 build 或使用生产环境参数启动时,config 文件夹下缺少 production.json 导致的。解决方法是先将 production.json 从本地挂在到容器里面,然后再继续接下来的流程。

from easy-mock.

linmiss avatar linmiss commented on May 10, 2024

谢啦 @DuanPengfei

from easy-mock.

ouhuiju avatar ouhuiju commented on May 10, 2024

@DuanPengfei 谢谢!

from easy-mock.

linmiss avatar linmiss commented on May 10, 2024

@ouhuiju 你服务起来了吗?

from easy-mock.

xiaojue avatar xiaojue commented on May 10, 2024

@ouhuiju 我也有这个提示,不过不影响使用。

from easy-mock.

xiaojue avatar xiaojue commented on May 10, 2024

@linmiss 我是可以注册的唉。不过没事 可以换换官方的,我这个也是临时做的。

from easy-mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.