Giter VIP home page Giter VIP logo

Comments (4)

martijndeh avatar martijndeh commented on September 26, 2024

I've updated the example project. You were not doing anything wrong. It was using an old version of the framework.

Can you pull and try again? Please let me know how it goes!

The TodoMVC is also a nice example project. Have you looked at that one? It does use bower, so please do a bower install too. In future versions we're moving away from bower though.

from fire.

kierer avatar kierer commented on September 26, 2024

Thank you (and thanks for sharing a very cool project)! TodoMVC is very nice- it worked straight away. I really want to get all of the examples working toward better exploring the framework. Although I still got the above errors in multi-apps after updating, I found was able to make them go away by consolidating the migrations for the multi-apps example into a single '001.js' file and putting that under the app2 migrations folder prior to running 'fire release', so the problem seems to be related to the use of multiple migration files (start with a blank database to reproduce). Also, I just tried the 'isomorphic' example and although the 'fire build' and 'fire release' steps succeed, 'fire run' fails with

Warning: Task "run" not found. Use --force to continue.
Aborted due to warnings.

It's probably something simple- I'll jump in to take a look after exploring the migration code a bit more deeply toward trying to understand what was happening with multi-apps.

I saw the move to browserify in the develop branch- very nice!

from fire.

martijndeh avatar martijndeh commented on September 26, 2024

I think the error you're seeing in the multiple apps example is related to the shared models. In a project with multiple apps, one app is configured as the master app. This means the migrations of shared models, such as Schema, are created and invoked in the master app. The Schema model (which is the schemas relation you see in your error) is required when running the release (migrate). This means if you try to release the non-master app, which is app2, before you release the master app, which is app1, you'll receive an error.

Can you confirm this by... fire config:set NODE_APP=app1 and try fire release? Then fire config:set NODE_APP=app2 and fire release? Does that work in that order?

Tip: you can also quickly create a new datastore in postgres by invoking fire datastore:create databasename. This command also automatically sets your DATABASE_URL.

Not too sure what's going on with the isomorphic example. Did you do an npm install and does the node_modules folder exist?

I'm glad to hear you find it a cool project! There is some more good stuff coming like the Streams (web sockets plus LISTEN and NOTIFY in Postgres) and the Search module which introduces Model#search (easy full text search backed by Postgres).

If you want to contribute to Node on Fire in anyway, help improving and spreading the word you're super welcome. ;-)

from fire.

kierer avatar kierer commented on September 26, 2024

Thank you- that was it on the multi-app front; it was always starting out with NODE_APP set to app2! I really need to roll up my sleeves and dig into the code more deeply this weekend; I should have caught that. I had done npm install and node_modules was present with the isomorphic example, so something else is going on; I'll poke around a bit more and post once I get it working.

You bet- I already started spreading the word a bit! A friend and teammate of mine who has a good deal of experience coding similar stacks is looking forward to checking the project out when he returns from vacation next week; I mentioned to him that I think there may be pretty good alignment between the Node of Fire goals and how we've been approaching things- it would be great to be able to contribute. Thanks again!

from fire.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.