Issue when starting my pm2 using --watchUnable to create lock file when starting mongod via upstartIssue using Node.js / Express, Says it's not installedError while starting MongodbPermission issue when starting mongodb as serviceerror: Unit mongodb.service is masked when starting mongodbSamba SMB daemon not starting when using apt
Round up my number
Is it safe to drive from Prague to Salzburg during winter?
"Applicants for asylum must prove that they have fifteen family members in the Netherlands."
Can I make leading exclamation points be ignored in the terminal? (I type them by instinct due to ipython)
Is there any reason a person would voluntarily choose to have PMI?
Is it possible to stall a plane so badly that the nose refuses to go down due to lack of airspeed?
Why is dwarfism considered an advantage for jobs in space?
What should be done when the theory behind a PhD thesis turns out to be wrong?
Retracting Recommendation Letters
A novel (or maybe a whole series) where a weird disease infects men and machines
Can I weaken a coil spring consisting of spring steel?
Why do Russian names transliterated into English have unpronounceable 'k's before 'h's (e.g. 'Mikhail' instead of just 'Mihail')?
Prefix all commands in shell
Team members' and manager's behaviour is indifferent after I announce my intention to leave in 8 months
Is the use of ellipsis "..." dismissive or rude?
Professor Pun's Personal Project
Between while and do in shell script
50K, what to do with it?
Does using a less common opening make you a stronger player?
How to run " $('div').clone().appendTo('.wrapper'); " in LWC?
Ball hits curve of same curvature
Feeling of forcing oneself to do something
Is there a material or method to allow "swimmable" coins?
Template not provided using create-react-app
Issue when starting my pm2 using --watch
Unable to create lock file when starting mongod via upstartIssue using Node.js / Express, Says it's not installedError while starting MongodbPermission issue when starting mongodb as serviceerror: Unit mongodb.service is masked when starting mongodbSamba SMB daemon not starting when using apt
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
My pm2
project works fine when I run it using:
sudo pm2 start ecosystem.json --env production
But after adding --watch
to this command, I get this error:
(node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
And I'm not able to see my project in browser.
I tried some solutions:
- add
useMongoClient: true
tomongoose.connect
. - upgrade
node
to v.10.16.3
And I enabled watch using "watch": true,
in my ecosystem.json
.
But they didn't work. Any help will be greatly appreciated.
18.04 nodejs mongodb
add a comment
|
My pm2
project works fine when I run it using:
sudo pm2 start ecosystem.json --env production
But after adding --watch
to this command, I get this error:
(node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
And I'm not able to see my project in browser.
I tried some solutions:
- add
useMongoClient: true
tomongoose.connect
. - upgrade
node
to v.10.16.3
And I enabled watch using "watch": true,
in my ecosystem.json
.
But they didn't work. Any help will be greatly appreciated.
18.04 nodejs mongodb
add a comment
|
My pm2
project works fine when I run it using:
sudo pm2 start ecosystem.json --env production
But after adding --watch
to this command, I get this error:
(node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
And I'm not able to see my project in browser.
I tried some solutions:
- add
useMongoClient: true
tomongoose.connect
. - upgrade
node
to v.10.16.3
And I enabled watch using "watch": true,
in my ecosystem.json
.
But they didn't work. Any help will be greatly appreciated.
18.04 nodejs mongodb
My pm2
project works fine when I run it using:
sudo pm2 start ecosystem.json --env production
But after adding --watch
to this command, I get this error:
(node:4096) DeprecationWarning: `openSet()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
And I'm not able to see my project in browser.
I tried some solutions:
- add
useMongoClient: true
tomongoose.connect
. - upgrade
node
to v.10.16.3
And I enabled watch using "watch": true,
in my ecosystem.json
.
But they didn't work. Any help will be greatly appreciated.
18.04 nodejs mongodb
18.04 nodejs mongodb
edited Sep 28 at 10:10
user3140225
2,7004 gold badges12 silver badges24 bronze badges
2,7004 gold badges12 silver badges24 bronze badges
asked Sep 28 at 7:50
bahman parsamaneshbahman parsamanesh
1012 bronze badges
1012 bronze badges
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177230%2fissue-when-starting-my-pm2-using-watch%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177230%2fissue-when-starting-my-pm2-using-watch%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown