Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this work with Meteor.js #74

Open
fbracht opened this issue Nov 18, 2014 · 5 comments
Open

Will this work with Meteor.js #74

fbracht opened this issue Nov 18, 2014 · 5 comments

Comments

@fbracht
Copy link

fbracht commented Nov 18, 2014

Meteor.js does its own "Live Preview" thing on localhost:3000, so Bracket's Live Preview doesn't work for Meteor projects. Will Theseus work?

@mesosteros
Copy link

Bracket's Live Preview does work with Meteor projects. Simply start the Meteor project as usual on the console and then in Brackets go to File > Project Settings and put the http://localhost:3000/ as the url for the Live Preview. You should also have an option in File menu that switches from "Mode: Serve files from disk" to "Mode: Proxy to localhost:3000".
Theseus however does not work yet with this (at least on my end).
We should always keep in mind that Meteor runs on both Client and Server sides, so you need to debug them in separate. There already are a couple of videos on the You Tubes about that, but they use the browser's console and developer tools.

@fbracht
Copy link
Author

fbracht commented Nov 21, 2014

Thanks for the clarification, very much appreciated. :)

@fbracht fbracht closed this as completed Nov 21, 2014
@fbracht fbracht reopened this Nov 21, 2014
@fbracht
Copy link
Author

fbracht commented Nov 21, 2014

If you'll allow me one follow-up question to that, @mesosteros, I did as you said, but the live preview still doesn't work. It seems to require an index.html, which I don't have on my project. (Since Meteor.js doesn't require one, I prefer to have all files named after their content.) Is it really required?

@mesosteros
Copy link

It's a small bug but it should work nonetheless if you open the live preview when you have the html file with the head tag, open (i don't know if you're using iron router so i'm just pointing to the head). I can perfectly use it despite this small bug.

@alltom
Copy link
Member

alltom commented Nov 26, 2014

I don't think Theseus will work with Meteor.js code, on the server, or in the browser. :(

Meteor.js has its own program for running the server code that doesn't work with Theseus yet. You can try using Theseus in Proxy mode like @mesosteros described, but I don't think the code that runs in the browser is the same as the code that's on disk (I think Meteor modifies it somehow), so Theseus won't be able to tell which functions are executing.

I'd really like to accept patches that make it work! Or instructions on how to get it to work if it does happen to already. :)

BTW, to be able to launch Live Development, it is enough to create an HTML file with nothing in it and use that to start the server. It doesn't have to be called index.html, but Brackets will append the file name to the server URL you give it, so it helps if its name also makes a valid URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants