{"action":"created","comment":{"url":"https://api.github.com/repos/fushar/regrader/pulls/comments/54311317","id":54311317,"diff_hunk":"@@ -42,26 +42,21 @@ Download a copy of the latest Regrader: https://github.com/fushar/regrader/relea\n \n #### 3. Configure Regrader\n \n-Create an InnoDB database in your MySQL database server. Then, open the database configuration file **application/config/database.php** and add your hostname, username, password, and database name in this part of the file:\n-\n-```php\n-$db['default'] = array(\n-    //\n-    'hostname' \t\t=> 'localhost',\n-    'username' \t\t=> '',\n-    'password' \t\t=> '',\n-    'database' \t\t=> '',\n-    //\n-);\n-```\n+Create an InnoDB database in your MySQL database server.\n \n-Next, open the configuration file **application/config/config.php** and add a random string in this part of the file:\n+Then, make a copy of `.env` from `.env.example`:\n \n-```php\n-$config['encryption_key'] = '';\n+```bash\n+$ cp .env.example .env\n ```\n \n-It is advisable that the string consists of 32 random characters.\n+And edit each entry of `.env` based on your system configuration:\n+\n+- `ENCRYPTION_KEY` denotes the encryption key that will be used by CodeIgniter. It is advisable that the string consists of 32 random characters.\n+- `DB_HOSTNAME` denotes the hostname of the MySQL database.\n+- `DB_USERNAME` and `DB_PASSWORD` denote the credentials of the MySQL user related to the database.\n+- `DB_NAME` denotes the database name that will be used by Regrader.\n+- `CPP_EXECUTABLE_PATH` denotes the C++ compiler path that will be used to compile checker source code (e.g., `usr/bin/g++`).","path":"README.md","position":34,"original_position":34,"commit_id":"bd9b6c52b8d90be770ff7900040129565b170855","original_commit_id":"bd9b6c52b8d90be770ff7900040129565b170855","user":{"login":"fushar","id":1525580,"avatar_url":"https://avatars.githubusercontent.com/u/1525580?v=3","gravatar_id":"","url":"https://api.github.com/users/fushar","html_url":"https://github.com/fushar","followers_url":"https://api.github.com/users/fushar/followers","following_url":"https://api.github.com/users/fushar/following{/other_user}","gists_url":"https://api.github.com/users/fushar/gists{/gist_id}","starred_url":"https://api.github.com/users/fushar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fushar/subscriptions","organizations_url":"https://api.github.com/users/fushar/orgs","repos_url":"https://api.github.com/users/fushar/repos","events_url":"https://api.github.com/users/fushar/events{/privacy}","received_events_url":"https://api.github.com/users/fushar/received_events","type":"User","site_admin":false},"body":"Right, I completely forgot about that :)\r\n\r\nJust give a note, something along the line (\"... if you don't wish to use checker at all, leave it empty\")","created_at":"2016-02-26T22:29:58Z","updated_at":"2016-02-26T22:29:58Z","html_url":"https://github.com/fushar/regrader/pull/67#discussion_r54311317","pull_request_url":"https://api.github.com/repos/fushar/regrader/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/fushar/regrader/pulls/comments/54311317"},"html":{"href":"https://github.com/fushar/regrader/pull/67#discussion_r54311317"},"pull_request":{"href":"https://api.github.com/repos/fushar/regrader/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/fushar/regrader/pulls/67","id":60912212,"html_url":"https://github.com/fushar/regrader/pull/67","diff_url":"https://github.com/fushar/regrader/pull/67.diff","patch_url":"https://github.com/fushar/regrader/pull/67.patch","issue_url":"https://api.github.com/repos/fushar/regrader/issues/67","number":67,"state":"open","locked":false,"title":"Dotenv support","user":{"login":"sokokaleb","id":3934088,"avatar_url":"https://avatars.githubusercontent.com/u/3934088?v=3","gravatar_id":"","url":"https://api.github.com/users/sokokaleb","html_url":"https://github.com/sokokaleb","followers_url":"https://api.github.com/users/sokokaleb/followers","following_url":"https://api.github.com/users/sokokaleb/following{/other_user}","gists_url":"https://api.github.com/users/sokokaleb/gists{/gist_id}","starred_url":"https://api.github.com/users/sokokaleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokokaleb/subscriptions","organizations_url":"https://api.github.com/users/sokokaleb/orgs","repos_url":"https://api.github.com/users/sokokaleb/repos","events_url":"https://api.github.com/users/sokokaleb/events{/privacy}","received_events_url":"https://api.github.com/users/sokokaleb/received_events","type":"User","site_admin":false},"body":"Dotenv support is provided by @vlucas's [phpdotenv](https://github.com/vlucas/phpdotenv).","created_at":"2016-02-26T22:11:19Z","updated_at":"2016-02-26T22:29:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e942a4ae88f5474657a733347f837584ae4f4e70","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fushar/regrader/pulls/67/commits","review_comments_url":"https://api.github.com/repos/fushar/regrader/pulls/67/comments","review_comment_url":"https://api.github.com/repos/fushar/regrader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fushar/regrader/issues/67/comments","statuses_url":"https://api.github.com/repos/fushar/regrader/statuses/bd9b6c52b8d90be770ff7900040129565b170855","head":{"label":"fushar:dotenv-support","ref":"dotenv-support","sha":"bd9b6c52b8d90be770ff7900040129565b170855","user":{"login":"fushar","id":1525580,"avatar_url":"https://avatars.githubusercontent.com/u/1525580?v=3","gravatar_id":"","url":"https://api.github.com/users/fushar","html_url":"https://github.com/fushar","followers_url":"https://api.github.com/users/fushar/followers","following_url":"https://api.github.com/users/fushar/following{/other_user}","gists_url":"https://api.github.com/users/fushar/gists{/gist_id}","starred_url":"https://api.github.com/users/fushar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fushar/subscriptions","organizations_url":"https://api.github.com/users/fushar/orgs","repos_url":"https://api.github.com/users/fushar/repos","events_url":"https://api.github.com/users/fushar/events{/privacy}","received_events_url":"https://api.github.com/users/fushar/received_events","type":"User","site_admin":false},"repo":{"id":7929176,"name":"regrader","full_name":"fushar/regrader","owner":{"login":"fushar","id":1525580,"avatar_url":"https://avatars.githubusercontent.com/u/1525580?v=3","gravatar_id":"","url":"https://api.github.com/users/fushar","html_url":"https://github.com/fushar","followers_url":"https://api.github.com/users/fushar/followers","following_url":"https://api.github.com/users/fushar/following{/other_user}","gists_url":"https://api.github.com/users/fushar/gists{/gist_id}","starred_url":"https://api.github.com/users/fushar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fushar/subscriptions","organizations_url":"https://api.github.com/users/fushar/orgs","repos_url":"https://api.github.com/users/fushar/repos","events_url":"https://api.github.com/users/fushar/events{/privacy}","received_events_url":"https://api.github.com/users/fushar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fushar/regrader","description":"An ICPC-style programming contest system that works","fork":false,"url":"https://api.github.com/repos/fushar/regrader","forks_url":"https://api.github.com/repos/fushar/regrader/forks","keys_url":"https://api.github.com/repos/fushar/regrader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fushar/regrader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fushar/regrader/teams","hooks_url":"https://api.github.com/repos/fushar/regrader/hooks","issue_events_url":"https://api.github.com/repos/fushar/regrader/issues/events{/number}","events_url":"https://api.github.com/repos/fushar/regrader/events","assignees_url":"https://api.github.com/repos/fushar/regrader/assignees{/user}","branches_url":"https://api.github.com/repos/fushar/regrader/branches{/branch}","tags_url":"https://api.github.com/repos/fushar/regrader/tags","blobs_url":"https://api.github.com/repos/fushar/regrader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fushar/regrader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fushar/regrader/git/refs{/sha}","trees_url":"https://api.github.com/repos/fushar/regrader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fushar/regrader/statuses/{sha}","languages_url":"https://api.github.com/repos/fushar/regrader/languages","stargazers_url":"https://api.github.com/repos/fushar/regrader/stargazers","contributors_url":"https://api.github.com/repos/fushar/regrader/contributors","subscribers_url":"https://api.github.com/repos/fushar/regrader/subscribers","subscription_url":"https://api.github.com/repos/fushar/regrader/subscription","commits_url":"https://api.github.com/repos/fushar/regrader/commits{/sha}","git_commits_url":"https://api.github.com/repos/fushar/regrader/git/commits{/sha}","comments_url":"https://api.github.com/repos/fushar/regrader/comments{/number}","issue_comment_url":"https://api.github.com/repos/fushar/regrader/issues/comments{/number}","contents_url":"https://api.github.com/repos/fushar/regrader/contents/{+path}","compare_url":"https://api.github.com/repos/fushar/regrader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fushar/regrader/merges","archive_url":"https://api.github.com/repos/fushar/regrader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fushar/regrader/downloads","issues_url":"https://api.github.com/repos/fushar/regrader/issues{/number}","pulls_url":"https://api.github.com/repos/fushar/regrader/pulls{/number}","milestones_url":"https://api.github.com/repos/fushar/regrader/milestones{/number}","notifications_url":"https://api.github.com/repos/fushar/regrader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fushar/regrader/labels{/name}","releases_url":"https://api.github.com/repos/fushar/regrader/releases{/id}","deployments_url":"https://api.github.com/repos/fushar/regrader/deployments","created_at":"2013-01-31T03:02:31Z","updated_at":"2016-02-26T21:40:49Z","pushed_at":"2016-02-26T22:11:19Z","git_url":"git://github.com/fushar/regrader.git","ssh_url":"git@github.com:fushar/regrader.git","clone_url":"https://github.com/fushar/regrader.git","svn_url":"https://github.com/fushar/regrader","homepage":"","size":2649,"stargazers_count":27,"watchers_count":27,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":10,"forks":15,"open_issues":10,"watchers":27,"default_branch":"master"}},"base":{"label":"fushar:master","ref":"master","sha":"aef1e286c5463fc56ab950a11a354f7a033d7b1e","user":{"login":"fushar","id":1525580,"avatar_url":"https://avatars.githubusercontent.com/u/1525580?v=3","gravatar_id":"","url":"https://api.github.com/users/fushar","html_url":"https://github.com/fushar","followers_url":"https://api.github.com/users/fushar/followers","following_url":"https://api.github.com/users/fushar/following{/other_user}","gists_url":"https://api.github.com/users/fushar/gists{/gist_id}","starred_url":"https://api.github.com/users/fushar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fushar/subscriptions","organizations_url":"https://api.github.com/users/fushar/orgs","repos_url":"https://api.github.com/users/fushar/repos","events_url":"https://api.github.com/users/fushar/events{/privacy}","received_events_url":"https://api.github.com/users/fushar/received_events","type":"User","site_admin":false},"repo":{"id":7929176,"name":"regrader","full_name":"fushar/regrader","owner":{"login":"fushar","id":1525580,"avatar_url":"https://avatars.githubusercontent.com/u/1525580?v=3","gravatar_id":"","url":"https://api.github.com/users/fushar","html_url":"https://github.com/fushar","followers_url":"https://api.github.com/users/fushar/followers","following_url":"https://api.github.com/users/fushar/following{/other_user}","gists_url":"https://api.github.com/users/fushar/gists{/gist_id}","starred_url":"https://api.github.com/users/fushar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fushar/subscriptions","organizations_url":"https://api.github.com/users/fushar/orgs","repos_url":"https://api.github.com/users/fushar/repos","events_url":"https://api.github.com/users/fushar/events{/privacy}","received_events_url":"https://api.github.com/users/fushar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fushar/regrader","description":"An ICPC-style programming contest system that works","fork":false,"url":"https://api.github.com/repos/fushar/regrader","forks_url":"https://api.github.com/repos/fushar/regrader/forks","keys_url":"https://api.github.com/repos/fushar/regrader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fushar/regrader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fushar/regrader/teams","hooks_url":"https://api.github.com/repos/fushar/regrader/hooks","issue_events_url":"https://api.github.com/repos/fushar/regrader/issues/events{/number}","events_url":"https://api.github.com/repos/fushar/regrader/events","assignees_url":"https://api.github.com/repos/fushar/regrader/assignees{/user}","branches_url":"https://api.github.com/repos/fushar/regrader/branches{/branch}","tags_url":"https://api.github.com/repos/fushar/regrader/tags","blobs_url":"https://api.github.com/repos/fushar/regrader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fushar/regrader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fushar/regrader/git/refs{/sha}","trees_url":"https://api.github.com/repos/fushar/regrader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fushar/regrader/statuses/{sha}","languages_url":"https://api.github.com/repos/fushar/regrader/languages","stargazers_url":"https://api.github.com/repos/fushar/regrader/stargazers","contributors_url":"https://api.github.com/repos/fushar/regrader/contributors","subscribers_url":"https://api.github.com/repos/fushar/regrader/subscribers","subscription_url":"https://api.github.com/repos/fushar/regrader/subscription","commits_url":"https://api.github.com/repos/fushar/regrader/commits{/sha}","git_commits_url":"https://api.github.com/repos/fushar/regrader/git/commits{/sha}","comments_url":"https://api.github.com/repos/fushar/regrader/comments{/number}","issue_comment_url":"https://api.github.com/repos/fushar/regrader/issues/comments{/number}","contents_url":"https://api.github.com/repos/fushar/regrader/contents/{+path}","compare_url":"https://api.github.com/repos/fushar/regrader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fushar/regrader/merges","archive_url":"https://api.github.com/repos/fushar/regrader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fushar/regrader/downloads","issues_url":"https://api.github.com/repos/fushar/regrader/issues{/number}","pulls_url":"https://api.github.com/repos/fushar/regrader/pulls{/number}","milestones_url":"https://api.github.com/repos/fushar/regrader/milestones{/number}","notifications_url":"https://api.github.com/repos/fushar/regrader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fushar/regrader/labels{/name}","releases_url":"https://api.github.com/repos/fushar/regrader/releases{/id}","deployments_url":"https://api.github.com/repos/fushar/regrader/deployments","created_at":"2013-01-31T03:02:31Z","updated_at":"2016-02-26T21:40:49Z","pushed_at":"2016-02-26T22:11:19Z","git_url":"git://github.com/fushar/regrader.git","ssh_url":"git@github.com:fushar/regrader.git","clone_url":"https://github.com/fushar/regrader.git","svn_url":"https://github.com/fushar/regrader","homepage":"","size":2649,"stargazers_count":27,"watchers_count":27,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":10,"forks":15,"open_issues":10,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fushar/regrader/pulls/67"},"html":{"href":"https://github.com/fushar/regrader/pull/67"},"issue":{"href":"https://api.github.com/repos/fushar/regrader/issues/67"},"comments":{"href":"https://api.github.com/repos/fushar/regrader/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/fushar/regrader/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/fushar/regrader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fushar/regrader/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/fushar/regrader/statuses/bd9b6c52b8d90be770ff7900040129565b170855"}}}}