GithubHelp home page GithubHelp logo

Enhancement: Support for Docker about mean HOT 8 CLOSED

amobrem avatar amobrem commented on June 1, 2024
Enhancement: Support for Docker

from mean.

Comments (8)

rschwabco avatar rschwabco commented on June 1, 2024

Great idea @amobrem! Added to the backlog, we'll add it to the 0.3 branch.

from mean.

telemakhos avatar telemakhos commented on June 1, 2024

I think this is already possible with Dokku. I'm using it for some Django projects that I used to host at Heroku and works ok so far... You could test this example with Node.js

from mean.

amobrem avatar amobrem commented on June 1, 2024

I will try later this week to setup a Dokku system on Digital Ocean.

from mean.

telemakhos avatar telemakhos commented on June 1, 2024

It is really easy, won't take you more than 30 minutes... they have a pre-baked ubuntu image with docker and dokku installed. One click install... =)

from mean.

amobrem avatar amobrem commented on June 1, 2024

What did I do wrong?

Using the "production" envrionment file
MEAN.JS application started on port 5000

events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
at null. (/app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:553:74)
at EventEmitter.emit (events.js:106:17)
at null. (/app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:140:15)
at EventEmitter.emit (events.js:98:17)
at Socket. (/app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:512:10)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:415:13)
error: Forever detected script exited with code: 8

from mean.

telemakhos avatar telemakhos commented on June 1, 2024

Did you install the MongoDB plugin? https://github.com/jeffutter/dokku-mongodb-plugin

from mean.

amobrem avatar amobrem commented on June 1, 2024

Here are the commands I did after I ssh to the box:
1 git clone https://github.com/jeffutter/dokku-mongodb-plugin.git /var/lib/dokku/plugins/mongodb
2 dokku plugins-install
3 dokku mongodb:start
4 dokku mongodb:create mean mean

from mean.

telemakhos avatar telemakhos commented on June 1, 2024

@amobrem It's the same error as #43 Have you tried in heroku? Do you get the same error?

from mean.

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.