Page 1 of 1

Create Web App: Path-Question

Posted: Fri Nov 11, 2016 11:31 am
by Peter
Hello,

i don't know if i understood it correctly

for the first time i want to create a Web App in an Apache htdocs folder and have this configuration

Image

After creating the Web App (and calling localhost/ahh4/index.html) i get this:

Image

Am I doing something wrong?

Thanks in advance & Greetings ... Peter

Re: Create Web App: Path-Question

Posted: Fri Nov 11, 2016 11:46 am
by JohnJohnsonSHERMAN
Try to use relative "internet" paths in the Javascript and Spiderbasic librairies fields.

In your example, you should have something like this :

Javascript filename : aah4.js
Spiderbasic librairies path : SpiderBasic

If you want to precise another path, use "/" instead of "\". I dont know if hard paths like "D:/Programs/someting/else/..." works, even with "/"...

I had the same problem as you, and it works fine now (in htdocs, using Xampp).

Re: Create Web App: Path-Question

Posted: Fri Nov 11, 2016 11:54 am
by Peter
Hello JohnJohnsonSHERMAN,

thanks for your fast reply! Now everything works like expected. :-)

Image

Greetings ... Peter

Re: Create Web App: Path-Question

Posted: Fri Nov 11, 2016 12:35 pm
by JohnJohnsonSHERMAN
You're welcome ! :)

Re: Create Web App: Path-Question

Posted: Fri Nov 11, 2016 2:55 pm
by Peter
Me again ;-)

What about the resource-Directory?
SB-Help wrote:Resource directory
The path of the resource directory where all the app assets belongs to. It can be only one resource directory specified.
The whole directory will be automatically copied to the app root directory.
i have a resource-Folder containing a file but it's not copied to the app root directory:

Image

Tanks in advance & Greetings ... Peter

Re: Create Web App: Path-Question

Posted: Fri Nov 11, 2016 3:30 pm
by JohnJohnsonSHERMAN
I dont have the Beta version, so it would be hard for me to help you in this case... :(
Could you try with "parent folder" path ("../")?
Example : if you've a 'wwwroot' folder containing a 'ressources' folder and your app's folder, the path should be "../ressources/"

I hope this will work, but I'm not able to test it myself.
PS : Try with "/" and "\" to see if it works with both slashs...

PS 2 : The parent folder alias "../" works in the Javascipt and the Spiderbasic Libs fields. Should be the same on the Ressources field. :)

Re: Create Web App: Path-Question

Posted: Mon Nov 14, 2016 7:53 am
by Peter
Hello JohnJohnsonSHERMAN,

thanks for your reply!

unfortunately it doesn't work with or without front- or backslashes: The resources-folder and its content is not copied.

Sounds like a bug for me...

Greetings ... Peter

Re: Create Web App: Path-Question

Posted: Tue Nov 15, 2016 6:34 am
by Fred
Copy resource dir should be fixed in 2.00 beta 7