Installed the appserver module and created an app. However, I get the following error.

Warning: file_get_contents(profiles/apps_deploy/modules/contrib/appserver/sample.json): failed to open stream: No such file or 
directory in appserver_query() (line 78 of /home/lsolesen/workspace/apps/profiles/apps_deploy/modules/contrib/appserver/appserver.module).

Comments

david.mccandless’s picture

I just attended DrupalCamp Austin and saw 2 presentations on apps and I love the idea for apps. I think it is a missing ingredient for Drupal that will be perfect for non-technical consumers of Drupal. I have been working on creating a couple of sample apps and trying out the appserver as well and have run into the issue listed above as well.

I'd love to volunteer to be a guinea pig for this project and would be happy to contribute feedback or any patches if I can help too. For example, I have a very temporary workaround in place for the sample.json error, but if I had a better understanding of where this should come from, I could probably write the code to generate it as intended.

Let me know if I can help. I'm really excited about this project and the app project. Keep up the good work!

alexweber’s picture

@lsolesen, the documentation is really nonexistent, which is a shame. From what I gather, you can generate the JSON file yourself:

  1. Create a taxonomy term in the "Server Type" vocabulary
  2. Create at least one App and App Release and tag it with the term you created
  3. Now access: http://example.com/app/query/1 (where 1 is the TID of the term you created)
  4. Some JSON will be dumped on the screen. Copy and paste it into a sample.json file in the appserver module directory

That said, the generated JSON output is only semi-valid as it's missing a bunch of important fields that throw a bunch of warnings/notices and ultimately break things when retrieving info from your app server.

More documentation please! :)

febbraro’s picture

Status: Active » Fixed

Docs now exist. EIther go to admin/help#appserver or look at the readme. Also better content form help was added to the App Release as well.

alexweber’s picture

@febbraro is the manifest being generated automatically or do we still have to manually go through the steps described in #2?

Thanks!

febbraro’s picture

That error is from the very first version of appserver. The module now generates the json manifest based on the fields within the app release, no need to manually do anything.

alexweber’s picture

Excellent news, I guess its time for git pull :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.