{"action":"closed","issue":{"url":"https://api.github.com/repos/twostairs/paperwork/issues/658","repository_url":"https://api.github.com/repos/twostairs/paperwork","labels_url":"https://api.github.com/repos/twostairs/paperwork/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/twostairs/paperwork/issues/658/comments","events_url":"https://api.github.com/repos/twostairs/paperwork/issues/658/events","html_url":"https://github.com/twostairs/paperwork/issues/658","id":169805914,"number":658,"title":"Error in file naming preventing loading ","user":{"login":"wassimseif","id":7282773,"avatar_url":"https://avatars.githubusercontent.com/u/7282773?v=3","gravatar_id":"","url":"https://api.github.com/users/wassimseif","html_url":"https://github.com/wassimseif","followers_url":"https://api.github.com/users/wassimseif/followers","following_url":"https://api.github.com/users/wassimseif/following{/other_user}","gists_url":"https://api.github.com/users/wassimseif/gists{/gist_id}","starred_url":"https://api.github.com/users/wassimseif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wassimseif/subscriptions","organizations_url":"https://api.github.com/users/wassimseif/orgs","repos_url":"https://api.github.com/users/wassimseif/repos","events_url":"https://api.github.com/users/wassimseif/events{/privacy}","received_events_url":"https://api.github.com/users/wassimseif/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twostairs/paperwork/labels/pending%20feedback","name":"pending feedback","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-07T17:11:47Z","updated_at":"2016-08-09T08:29:56Z","closed_at":"2016-08-09T08:29:56Z","body":"When setting up the app and the database, it creates a `/app/storage/config/database1.json`file. but in the` index.php` file this code is executed before running the app \r\n\r\n```\r\n    if(!file_exists(\"../app/storage/config/setup\") ||\r\n        file_get_contents(\"../app/storage/config/setup\") == 3 && !$_SERVER['HTTP_X_REQUESTED_WITH'] ||\r\n        file_get_contents(\"../app/storage/config/setup\") == 4 && !$_SERVER['HTTP_X_REQUESTED_WITH'] ||\r\n        file_get_contents(\"../app/storage/config/setup\") == 6 && !$_SERVER['HTTP_X_REQUESTED_WITH'] ||\r\n        file_get_contents(\"../app/storage/config/setup\") == 5 && !$_SERVER['HTTP_X_REQUESTED_WITH'] ||\r\n        !file_exists(\"../app/storage/config/paperwork.json\") && !$_SERVER['HTTP_X_REQUESTED_WITH'] ||\r\n        !file_exists(\"../app/storage/config/database.json\") && !$_SERVER['HTTP_X_REQUESTED_WITH']) {\r\n\r\n            header(\"Location: setup.php\");\r\n```\r\nif checks for `/app/storage/config/database.json`\r\ni had to rename the database1.json to database.json in order to run the app"}}
{"actor":{"display_login":"mrusme"}}