You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first Thank You very much for this nice project, it might be exactly what will save my project from going into the trash bin (if it wasn't for Debian having a like 5 years old MPV player version).
So my application is a little unorthodox, it was never intended to run on a web server in some server cluster. It should run inside your home network on a Pi or your Laptop, that's why it has to be easy to set up (And meteor apps really are not...) and that's why for this app it perfectly fine to run MongoDb from inside in production mode.
What did I do?
For testing I downloaded the simple-todos app from the meteor repository
wget https://github.com/meteor/simple-todos.git
I created a Dockerfile and a launchpad.conf with INSTALL_MONGO=true. Then I ran
docker build -t jan/simple-todos
When I then tried to run it with
docker run -p 80:3000 jan/test-todos
omitting the MONGO_URL as stated in your Readme, I get the following Error
=> Starting app on port 3000...
/opt/meteor/dist/bundle/programs/server/node_modules/fibers/future.js:280
throw(ex);
^
Error: MONGO_URL must be set in environment
at Object.<anonymous> (packages/mongo/remote_collection_driver.js:36:11)
at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750:1)
at new Mongo.Collection (packages/mongo/collection.js:103:40)
at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
at meteorInstall.node_modules.meteor.accounts-base.server_main.js (packages/accounts-base/server_main.js:9:12)
at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
at /opt/meteor/dist/bundle/programs/server/packages/accounts-base.js:1798:15
at /opt/meteor/dist/bundle/programs/server/packages/accounts-base.js:1809:3
I have checked your code and didn't find anywhere, where the environment variable MONGO_URL is actually set. All I found was the part in entrypoint.sh with the if condition, but it does not seem to actually set the MONGO_URL.
Unfortunately I'm not really good with bash scripting, that's why fixing it myself and opening a pull request wasn't possible.
I particularly tried it with the meteor example app, the rule out the possibility of my app having anything to do with it. It is just the plain simple-todos app, no modifications what so ever.
Cheers,
Jan
The text was updated successfully, but these errors were encountered:
Hey,
first Thank You very much for this nice project, it might be exactly what will save my project from going into the trash bin (if it wasn't for Debian having a like 5 years old MPV player version).
So my application is a little unorthodox, it was never intended to run on a web server in some server cluster. It should run inside your home network on a Pi or your Laptop, that's why it has to be easy to set up (And meteor apps really are not...) and that's why for this app it perfectly fine to run MongoDb from inside in production mode.
What did I do?
For testing I downloaded the simple-todos app from the meteor repository
I created a
Dockerfile
and alaunchpad.conf
withINSTALL_MONGO=true
. Then I ranWhen I then tried to run it with
omitting the MONGO_URL as stated in your Readme, I get the following Error
I have checked your code and didn't find anywhere, where the environment variable MONGO_URL is actually set. All I found was the part in entrypoint.sh with the if condition, but it does not seem to actually set the MONGO_URL.
Unfortunately I'm not really good with bash scripting, that's why fixing it myself and opening a pull request wasn't possible.
I particularly tried it with the meteor example app, the rule out the possibility of my app having anything to do with it. It is just the plain simple-todos app, no modifications what so ever.
Cheers,
Jan
The text was updated successfully, but these errors were encountered: