{"action":"created","issue":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/884","labels_url":"https://api.github.com/repos/bcosca/fatfree/issues/884/labels{/name}","comments_url":"https://api.github.com/repos/bcosca/fatfree/issues/884/comments","events_url":"https://api.github.com/repos/bcosca/fatfree/issues/884/events","html_url":"https://github.com/bcosca/fatfree/issues/884","id":115081228,"number":884,"title":"Request: For Cloud Environment - Customizable temp file prefix naming","user":{"login":"AndrewEQ","id":1557072,"avatar_url":"https://avatars.githubusercontent.com/u/1557072?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewEQ","html_url":"https://github.com/AndrewEQ","followers_url":"https://api.github.com/users/AndrewEQ/followers","following_url":"https://api.github.com/users/AndrewEQ/following{/other_user}","gists_url":"https://api.github.com/users/AndrewEQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewEQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewEQ/subscriptions","organizations_url":"https://api.github.com/users/AndrewEQ/orgs","repos_url":"https://api.github.com/users/AndrewEQ/repos","events_url":"https://api.github.com/users/AndrewEQ/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewEQ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-04T15:41:48Z","updated_at":"2015-11-05T11:49:51Z","closed_at":null,"body":"Hey guys,\r\n\r\nI'm trying to get F3 working on Google App Engine (GAE), the problem is that the F3 app is served from multiple servers, on each server, a request for a template would be expecting a temp filename made up of a hash(ROOT . BASE). ROOT changes accordingly to the server serving the request, so the expected template name changes from server to server.\r\n\r\nThis wouldn't be a problem except that GAE is read-only(attempting to write to disk would throw an error), so a solution is to upload Temp files generated locally to GAE, the main issue then being that the temp filenames won't match up with the temp filenames requested per server.\r\n\r\nCould you code it to allow the \"template prefix\" to be customisable? \r\n\r\n    base.php ... \r\n    Preview->render ... \r\n\r\n    $fw->get('ROOT')\r\n\r\nto something like:\r\n\r\n    ($fw->exists('TEMPLATE_ROOT') ? $fw->get('TEMPLATE_ROOT') : $fw->get('ROOT'))"},"comment":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/comments/154039413","html_url":"https://github.com/bcosca/fatfree/issues/884#issuecomment-154039413","issue_url":"https://api.github.com/repos/bcosca/fatfree/issues/884","id":154039413,"user":{"login":"AndrewEQ","id":1557072,"avatar_url":"https://avatars.githubusercontent.com/u/1557072?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewEQ","html_url":"https://github.com/AndrewEQ","followers_url":"https://api.github.com/users/AndrewEQ/followers","following_url":"https://api.github.com/users/AndrewEQ/following{/other_user}","gists_url":"https://api.github.com/users/AndrewEQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewEQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewEQ/subscriptions","organizations_url":"https://api.github.com/users/AndrewEQ/orgs","repos_url":"https://api.github.com/users/AndrewEQ/repos","events_url":"https://api.github.com/users/AndrewEQ/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewEQ/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T11:49:51Z","updated_at":"2015-11-05T11:49:51Z","body":"Ok, so my findings:\r\n\r\nFile writing on GAE issue - (https://github.com/bcosca/fatfree/blob/master/lib/base.php#L1817) \r\n\r\n    (($fw->exists('NO_LOCK_EX'))? 0 : LOCK_EX) \r\n- replaced with a flag but not sure what the permanent solution is here.\r\n\r\nCloud template naming issue - https://github.com/bcosca/fatfree/blob/master/lib/base.php#L2639\r\n\r\n    ($fw->exists('TEMPLATE_ROOT') ? $fw->get('TEMPLATE_ROOT') : $fw->get('ROOT'))\r\n- custom name for \"template root\"\r\n\r\nCaching naming issue - https://github.com/bcosca/fatfree/blob/master/lib/base.php#L2409\r\n\r\n    ($fw->exists('CACHE_ROOT') ? $fw->get('CACHE_ROOT') : $_SERVER['SERVER_NAME'])\r\n- custom name for \"cache root\""}}