Thank you so much, you are just about to save me big time.
- Please where do I put this .bat file? also are you saying all of this below is in the .bat file?
`cd C:\Users%USERNAME%\project-name\scripts
set /p METEOR_SETTINGS=<settings-build.json
cd C:\Users%USERNAME%\project-name\build
set ROOT_URL=http://localhost:3000
set PORT=3000
set MONGO_URL=mongodb://localhost:27017/project-name
node main.js`
-
On
As for your pre-gyp issue, that looks like you don’t have the build tools required to compile c++/native node extensions (like bcrypt). To get them, open an administrator command prompt and run:I am actually running the production build on my current development machine first so that f all works, then I move to the actual production app. So I am surprised why the current machine will not have build tools as I have used it to run several meteor projects ( though all as development) and this is my first attempt at deployment. -
On reading the meteor custome deploy again, I see they have
MONGO_URL=mongodb://localhost:27017/myapp ROOT_URL=http://my-app.com node main.js
how can i make this into a service or something so that when the production server is started, this script is run automomatically? -
I have tried to run
MONGO_URL=mongodb://localhost:27017/ARB ROOT_URL=localhost:3000 node main.jsbut I get
`MONGO_URL=mongodb://localhost:27017/ARB : The term ‘MONGO_URL=mongodb://localhost:27017/ARB’ is not recognized as the
name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
- MONGO_URL=mongodb://localhost:27017/ARB
+ CategoryInfo : ObjectNotFound: (MONGO_URL=mongodb://localhost:27017/ARB:String) [], >CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException`
Thank you for your help