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

Daxe without a Web server ? #1

Open
Desiderius77 opened this issue Sep 23, 2015 · 4 comments
Open

Daxe without a Web server ? #1

Desiderius77 opened this issue Sep 23, 2015 · 4 comments

Comments

@Desiderius77
Copy link

Hi Damien

I have installed DART and Daxe Desktop on my Linux machine

dart is well found at the command line

but when I try to load un XML file in daxe there is an error message as if Daxe searches for a Web server ?

phoenix-didier(44)% /home/produits/DaxeDesktop/daxe.sh libre_eve.xml
Unhandled exception:
Could not resolve a package location for base at file:///home/produits/DaxeDesktop/bin/main.dart
#0 _handlePackagesReply (dart:_builtin:416)
#1 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

However the package main.dart is well located at /home/produits/DaxeDesktop/bin/main.dart :

phoenix-didier(48)% ls -lh /home/produits/DaxeDesktop/bin/main.dart
-rw-r----- 1 produits users 1012 sept. 11 19:58 /home/produits/DaxeDesktop/bin/main.dart
phoenix-didier(49)%

Regards

Didier Courtaud
didier.courtaudCHEZuniv-evry.fr

@Desiderius77
Copy link
Author

Of course DAXE_HOME is set at the value : /home/produits/DaxeDesktop/

@damien-git
Copy link
Contributor

Bonjour !
DAXE_HOME should be set to the Daxe web application (daxe.html) home, not the Daxe desktop application (daxe.sh) home. So, if you put the Daxe web application (from adopt/daxe, with daxe.html) into /home/produits/DaxeWebApp, DAXE_HOME should be set to /home/produits/DaxeWebApp.
The Daxe desktop application starts a little web server to communicate with the Daxe web application as a CMS would.
However, you might have a different problem here. Please check the tree inside DaxeDesktop:
DaxeDesktop/bin/main.dart
DaxeDesktop/lib/daxe_server.dart
DaxeDesktop/lib/form_field.dart
Also, it seems to be missing a package. You might have to use "pub get" (using the pub command from Dart SDK) to get needed packages, using the pubspec.yaml file in the same directory as daxe.sh. I should probably add a build.sh to do that.

@Desiderius77
Copy link
Author

Hi Damien

I have retried to install everything from scratch following your new installation process !

Installation of botg daxe and daxeapp were successfull and I did a pub get in both apps.
I initialize DART_HOME at the directory where is dart.html ( /tmp/daxe-master/web ).

Then I launch daxe.sh like this using a working Jaxe configuration file :

./daxapp-master/daxe.sh test.east /home/produits/NewJaxe3.5/config/EAST_config.xml

The server seems to launch well :
Daxe directory path: /tmp/daxe-master/web
Server started.

and a page is loaded into Firefox .

Unfortunately it is empty as you can see :
daxe

What is wrong ?

  • Configuration file not compatible ?
  • File "test.east" non existent ?
  • Daxe config error ?

Thanks by advance for your help

@damien-git
Copy link
Contributor

The command you have to use is:
./daxapp-master/daxe.sh test.east EAST
Make sure EAST_config.xml is in Daxe's config folder.

If you have not done it yet, you also have to build Daxe, by using ./build.sh in its directory. You then use the files created in ./build/web when setting DAXE_HOME (note that this is DAXE_HOME, not DART_HOME).

Your screenshot seems to indicate you are missing the Javascript file daxe.dart.js created with build.sh (or the path is wrong). You would probably see an error message if you looked at the console in your web browser.

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

2 participants