Hiya professor,
I been struggleing setting up this chat + on my machine. I have a webserver on linux but its being hosted somewhere else by the company i hired.
question 1 : is it possible to run chat+ module like i describe above? chat+ server on my private machine. and the website on the hosted machine ?
question 2 : Can someone help me set this up with me on skype maby?
- install above software packages-- I installed everything into folder c:/opt
- ideally place all packages in your environment path -- wich path? system/properties/ for users? system? not really clear...
- install node dependencies : where do i do this c:/opt? c:/windows? i just do it at start of Powershel.
npm install nave -g
get acquainted with Mongodb
change directory to mongo root install folder -- i go to c:opt/mongodb
-
create an ini file at top level, mongo.ini -- c:/opt/mongodb/mongo.in
replSet=001-rs
logpath = C:\opt\MongoDB\data\log\mongod.log
dbpath = C:\opt\MongoDB\data\db\ - create those directories (not the log file itself though) -- i did
- type cmd to enter command prompt itself, then Control+Shift+Enter to use cmd as Admin -- ok
- install mongod as a service with config options- np Mangodb service registerd
- type powershell to head back to PS
- net start mongodb -- Np s here
-
cd '.\opt\MongoDB\bin'
or place bin into y our path first-- ok -
.\mongo.exe
to enter mongo CLI -- works - rs.initiate()- - ok..
- then
exit
to exit mongo Cl---Np - Install IIS with url-rewrite/application request routing/redirect/SSL support---- I instaled II7 with ARR
- Open IIS and edit default website, add https binding and choose ssl cert -- i did so
- Add url-rewrite rule, Reverse Proxy, you’ll be prompted to install ARR - i guess this went ok too..
- Enable SSL offloading, forward requests to
localhost:3000 - enabled. How to i forward requests? Where do i put localhost:3000 ??
- Under SSL settings: Require SSL, ignore client certs-- i did so
- cd in PS back to C:
- Set the environment variables: - system/advance propeties/ system enviroments vaiables? user enviroment? i guess..
ROOT_URL="http://21.21.21.21/" My ip ?? this machine with chat+ server
MONGO_URL=mongodb://localhost:27017/rocketchat
MONGO_OPLOG_URL=mongodb://localhost:27017/local - Unarchive the downloaded tgz - Use 7zip or
tar zxvf rocket.chat.tgz
23.cd bundle/programs/server- ok i used alkinds of versions.
- npm install - i do this and then i get the errors .....
PS C:\bundle\programs\server> npm install
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
npm WARN package.json meteor-dev-bundle@0.0.0 No license field.
\
> fibers@1.0.5 install C:\bundle\programs\server\node_modules\fibers
> node ./build.js
(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
C:\bundle\programs\server\node_modules\fibers>if not defined npm_config_node_gyp (node "C:\lol\node_modules\npm\bin\node
-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release ) else (node "" rebuild --release )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Error: project file 'C:\bundle\programs\server\node_modules\fibers\build\fibers.vcproj' was not found or not a valid
project file.
The project consists entirely of configurations that require support for platforms which are not installed on this ma
chine. The project cannot be loaded.
-
cd ..//..
-
node main.js
server wont start fibers is not instaled good -