There are several questions related to this issue.
I want to deploy meteorjs application on official meteorite servers. My application uses fibers, and since the fibers were compiled for my system (Mac OSX), this creates an error on the ubuntu meteor servers.
Other questions / answers are related to deploying the application somewhere else than the official meteorite servers, or they seem to leave the step as they do not work for me.
Several related posts:
Reinstall node files for Meteor application on Modulus.io?
Meteor Fiber Deployment Issues
I would like to use:
meteor deploy myapp.meteor.com
EDIT:
My question above was not complete, unfortunately, I use the future, which is part of the fibers. When I deploy it to a meteor and gain access to the server logs, I get these WARNINGS and the application crashes right after.
WARNING / meteor / dev_bundles / 0.3.13 / lib / node_modules / fibers / future.js: 173
WARNING Error: Cannot find module 'fiber / Future'
In my code, I have a line:
Future = Npm.require("fibers/future");
Is it not possible to deploy XXX.meteor.com meteors?
EDIT 2nd: Instead of using:
Future = Npm.require("fibers/future");
I also tried:
var path = Npm.require('path'); var fs = Npm.require('fs'); var base = path.resolve('.'); var isBundle = fs.existsSync(base + '/bundle'); var modulePath = base + (isBundle ? '/bundle/static' : '/public') + '/node_modules'; Future = Npm.require(modulePath + '/fibers/future');
As suggested in this post:
How to deploy node modules in a Meteor app on meteor.com?
And installed fibers for:
.meteor / local / assemblies / programs / server / open / node_modules /
But with this I get either this when starting a meteor without sudo Error: EACCES, permission denied "XXXX / .meteor / local / build" in Object.fs.renameSync (fs.js: 439: 18)
Or this error when starting from sudo: Error: cannot find module "XXXX / .meteor / local / build / programs / server / public / node_modules / fiber / future"
Usually I launch a meteor without sudo ofc!