Meteorite on windows 8.1 with vagrant ( cannot install packages ) - meteor

I am very new to Linux ( does't even know the basic commands ) i am using https://gist.github.com/gabrieljenik/d926cbb90706d95abdee to setup vagrant on my windows 8.1 machine. i have created my test app and need to install packages like iron router etc.
when i try to execute
sudo npm install -g meteorite
it throws error : sudo command not found
mrt add iron-router
it throws error mrt: command not found
cannot figure out what the problem is

If you're very new to Linux and Meteor, don't use complicated stuff like Vagrant. Just use Meteor on Windows, with WebStorm. It works out of the box.
Note: meteorite has long been deprecated. Start with the official Meteor tutorial, http://meteor.com/try.
Install Meteor for Windows
Install and start WebStorm
Create a new project, choose type Meteor.js app, then "default".
Run -> Run -> Edit configurations
Click the + to add a new configuration of type Meteor
Call it simple-todos for clarity (this is optional)
Click Run
Notice how Webstorm starts a console within the IDE, which shows the familiar Meteor startup sequence:
=> Started proxy.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
If you're prompted for any firewall permissions, make sure to allow all traffic from Node.js.
Now you can edit your app in WebStorm on Windows. Welcome to Meteor!

Related

Can't check Meteor Version in Terminal

[react-pocketscholar (master)]$ meteor --version
/Users/ftrflyr/.meteor/packages/meteor-tool/.1.3.4_3.1v4v008++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:165
throw error;
^
Error: EEXIST, symlink '/Users/ftrflyr/.meteor/packages/meteor-tool/.1.3.4_3.1v4v008++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle'
[react-pocketscholar (master)]$ meteor -v
/Users/ftrflyr/.meteor/packages/meteor-tool/.1.3.4_3.1v4v008++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:165
throw error;
^
Error: EEXIST, symlink '/Users/ftrflyr/.meteor/packages/meteor-tool/.1.3.4_3.1v4v008++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle'
1. Global tool version of meteor command
Find version by:
meteor --version
2. Project version of meteor
A project stays at the meteor version which it was created with unless manually upgraded. Find this by running:
cat .meteor/release
Another way to do this is to open up your Javascript console in the browser and type:
console.log(Meteor);
This is very useful for me as I'm running Ubuntu on a Chromebook so I don't need to stop my local server to check which version I'm currently running.
Please note the server does need to be running (localhost:3000) for this command to work.
You have to be in a meteor project repository and type meteor --version

Running meteor on linux server

I am trying to get my localhost working on my remote (mediatemple) server.
I have bundled it up and have a /myurl.com/bundle folder with the following files.
this folder contains
main.js
npm-debug.log
programs
server
How do I get this to run?
You should take a look in the README inside the bundle folder. Normally everything ist described there to start your app.
Make sure that NODEJS and MONGO is installed on your remote server. This is NOT included in your bundle as well as NODEJS is not present.
If you are running a system like debian or ubuntu normally you can do the installation with
apt-get install nodejs mongo
Make sure, that the nodejs has release v0.10.36 or v0.10.38
node --version
At the README you see the necessary ENV-VARS like MONGO_URL and PORT you need to set to start your meteor app.
If you have running a apache server already the PORT 80 is already blocked, so try PORT=3000 to start your meteor app.
Example:
MONGO_URL='mongodb://localhost:27017/yourapp' ROOT_URL="http://yourhost" PORT=3000 node main.js
If using as above you do not need to export the ENV-VARS before start
Sometime when starting, there are missing NPM – you get fiber errors
In that case
cd programs/server
npm install
and the try start again.
Good luck
Tom
(I'm writing this response assuming that you are not worried about scalability issue, respond in comment if you want to scale your app)
The best option for running a node application, which Meteor application is, is by using forever.
npm install forever
forever start simple-server.js
If you want to figure out how to see the log files and how to stop/restart your service, you can run forever --help to see all the commands.

Can't complete mup setup on Dreamhost aka Meteor Up

I'm stuck at the mup setup. Trying to set it up on my Dreamhost server.
Here is what I started with after running mup setup:
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Started TaskList: Setup (linux)
[mydomain.com] - Installing Node.js
[mydomain.com] ✘ Installing Node.js: FAILED
-----------------------------------STDERR------------
tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
Then I installed node manually on my server, and set the mup file to "setupNode": false. Tried again and got that:
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Started TaskList: Setup (linux)
[mydomain.com] - Installing PhantomJS
[mydomain.com] ✘ Installing PhantomJS: FAILED
-----------------------------------STDERR-----------------
tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
Finally, I also deactivated the PhantomJS install, tried again to run mup setup and got that:
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Started TaskList: Setup (linux)
[mydomain.com] - Setting up Environment
[mydomain.com] ✔ Setting up Environment: SUCCESS
[mudomain.com] - Copying MongoDB configuration
[mydomain.com] ✘ Copying MongoDB configuration: FAILED
-----------------------------------STDERR-----------------
Warning: Permanently added 'mydomain.com,69.163.152.69' (RSA) to the list of known hosts.
scp: /etc/mongodb.conf: Permission denied
Killed by signal 1.
-----------------------------------STDOUT-----------------
----------------------------------------------------------
Completed TaskList: Setup (linux)
I am not sure what to do or try next. Thanks in advance for your help and suggestions.
Its seems like its a Permission problem.
Try with sudo mup setup or whatever name process are you running, initialize with the sudo keyword
From dream Host forums (admin or tutor post).
node.js — which is used by Meteor — causes some weird issues on our shared hosting servers that can trigger this behavior. We're aware of
the issue, but, for various reasons, it's been difficult to fix.
That being said, Meteor won't work on a shared hosting account anyway,
as it runs as a persistent server process, which isn't permitted.
You'd need a DreamHost VPS or dedicated server to run Meteor.
So if you don't have a dreamHost VPS or dedicated server, and you only want to deploy the app give a try to Modulus.io, it works pretty fine with meteor, or use the meteor deploy servers, doc here
This happens because Sudo isn't installed on the target machine.
On my Debian target machine I did apt-get install sudo to resolve this.
For a RedHat flavor (Centos etc) target machine you might do yum install sudo etc.
However mup is supported for Ubuntu only so it's very likely to run into issues with other flavors. You might want to stick with Ubuntu target machines to avoid headaches like these.

Cannot add package iron router for meteor on windows 8.1 pro

I installed meteor on windows from http://win.meteor.com/. I was trying to install iron router package for meteor on windows 8.1 by downloading following repositories
git clone https://github.com/tmeasday/meteor-router.git
After downloading i renamed the folder to iron-router. Then i downloaded other repositories
git clone https://github.com/tmeasday/meteor-page-js-ie-support.git
git clone https://github.com/tmeasday/meteor-HTML5-History-API.git
git clone https://github.com/EventedMind/blaze-layout.git
updated sub modules using git submodule update –-init for
meteor-HTML5-History-API
meteor-page-js-ie-support
when i execute meteor add iron-router i am getting following error
The problem is with win.meteor.com. As I instructed in my earlier answer, please install Meteor for Windows from https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows.
ok after spending a lot of time, finally i was able to setup my meteor environment using vagrant ( still like to know if i can get everything working and can move on to build a full fledge application using pure 100% windows environment )
Now for folks out there who faced the same issue, just follow the steps in link mentioned below ( this really worked for me ). I was able to install iron router and bootstrap and tested bootstrap its working. No file sync issues till now. Routers are working as well. Now i am moving on to start building a full fledge application, if i see any issues further down the road i will updat this post.
https://gist.github.com/gabrieljenik/d926cbb90706d95abdee

Your app has been updated ... Restart meteor to use the new release

I am trying to migrate to the latest version of meteor and after running meteor update it seems to go through ok but then when I run meteor to start the app, this is what happens:
=> Started proxy.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
Your app has been updated to Meteor 0.9.3.1 from Meteor METEOR#0.9.3.1.
Restart meteor to use the new release.
i.e. it just stops after seemingly starting successfully and says restart to use the new release...
P.S. the app is being updated from meteor 0.8.1.3
If you had meteorite packages, I think the correct way to update is by using mrt migrate-app. I had similar problems, but I just changed my .meteor/release file to METEOR#0.9.3.1, and then manually edited my .meteor/packages.

Resources