Open xelomac opened 10 years ago
I can say that I agree that it is an interesting and promising addition to BOA.
On the other hand, I think that the change from 2.x to 3.x could be too big and challenging to have this included as well.
If I would be the one to decide, I would postpone it to 3.1 release to give room for 3.0 to stabilize and then integrate fully and document.
Any progress concerning this feature request ?
while checking the documentation http://docs.drupalgap.org/7/Introduction/Web_Applications
it seems that the location of the drupalgap application is now configurable via a variable drush vset drupalgap_sdk_dir sites/site.name/files/mobile-application
if this is not enough though i thing a re-write should allow for the possibility to have the app in private or public files
location ~* /mobile-application/(.*)$ {
add_header Expires "Tue, 24 Jan 1984 08:00:00 GMT";
add_header Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
add_header Access-Control-Allow-Origin *;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
try_files /sites/$main_site_name/private/mobile-application/$1 $uri;
}
this could be added per octopus in a conf file under /data/disk/o1/config/server_master/nginx/post.d/nginx_vhost_include_drupalgap.conf
I got 500 error while trying what you advise
@yazzou what did you try ?
also what request(s) return a 500 error ?
just tried the nginx conf and it seems to work ok
when asking for /mobile-application/a.html i am served /site/site.name/private/mobile-application/a.html
@angel0d I have tried the following :
The result i got a message saying "Specify a folder name for the SDK to live in."
so i tried the second thing :
The result : i got a 500 server error
Finally tried the following :
The result : it works, but when i click the link download in the "Launch app (download | publish)" section of the configuration screen, i have a 404 error ("https://www.mysite.com/drupalgap-app.zip")
Thanks for following up
At the moment it doesn't seem to be possible to run the promising mobile app development kit DrupalGap (http://www.drupalgap.org) inside an Aegir / Boa environment. DrupalGap makes the development of PhoneGap apps connected to Drupal sites easy.
DrupalGap requires the creation of a directory inside the site's root where the mobile application files live. Example: http://www.example.com/mobile-application http://www.example.com/mobile-application/index.html (http://www.drupalgap.org/node/103)