{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/75500235","id":75500235,"diff_hunk":"@@ -1,40 +1,61 @@\n # How to install the Open Event Android App Generator on AWS\r\n \r\n-## Build Server Requirements\r\n-\r\n-* Operating system Ubuntu 14.04 or above\r\n+Build Server Requirements\r\n+======\r\n+* Operating system Ubuntu 14.04 or above is preferred\r\n * [Android SDK for linux](http://stackoverflow.com/a/19416222/5471095)\r\n * [Apache and PHP installed](https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu)\r\n-* Mutt and MSMTP [installed and configured](https://opev.wordpress.com/2016/06/15/sending-e-mail-from-linux-terminal/)\r\n+* [SendGrid PHP library](https://github.com/sendgrid/sendgrid-php) configured.\r\n * Python 2.7 or 3.4 [installed](http://askubuntu.com/questions/350751/install-and-run-python-3-at-the-same-time-than-python-2)\r\n * [Python-Firebase interface](https://pypi.python.org/pypi/python-firebase/1.2)\r\n * Recommended: A server with 2GB RAM, 4 Core CPU and 40GB of storage space is recommended <br>\r\n \r\n ## Required Components\r\n+\r\n * **[index.html](https://github.com/fossasia/open-event-android/blob/master/apk-generator/index.html)** A html file which can server as the landing page for your server.\r\n * **[runPy.php](https://github.com/fossasia/open-event-android/blob/master/apk-generator/scripts/runPy.php)** A php script that will launch python script by taking input from index.html.\r\n * **[appgenserver.py](https://github.com/fossasia/open-event-android/blob/master/apk-generator/scripts/appgenserver.py)** A python script containg commands to compile and generate the app\r\n * **[clone.sh](https://github.com/fossasia/open-event-android/blob/master/apk-generator/scripts/clone.sh)** A bash script used for cloning the source code for android app onto the server.\r\n * **[buildApk.sh](https://github.com/fossasia/open-event-android/blob/master/apk-generator/scripts/buildApk.sh)** A bash script used for initiating the app's build and signing it once the app has been generated.\r\n-* **[email.sh](https://github.com/fossasia/open-event-android/blob/master/apk-generator/scripts/email.sh)** A bash script used to send the email containing the generated app as an attachment.\r\n-* **[upload.php](https://github.com/fossasia/open-event-android/blob/development/apk-generator/scripts/upload.php)** A php script that will upload the json zip that is chosed by the user.\r\n-* **[uploadhelper.php](https://github.com/fossasia/open-event-android/blob/development/apk-generator/scripts/uploadHelper.php)** Takes in the timestamp of user as input and moves the uploaded script to a unique location for each user.\r\n-* **[api.php](https://github.com/fossasia/open-event-android/blob/development/apk-generator/api/api.php)** A php script that serves as an API and handles incoming requests to the server.\r\n+* **[email.php](https://github.com/fossasia/open-event-android/blob/master/apk-generator/api/email.sh)** A php script used to send the email containing the generated app as an attachment.\r\n+* **[upload.php](https://github.com/fossasia/open-event-android/blob/development/apk-generator/scripts/upload.php)** A php script that will upload the json zip that is chosed by the user into a unique folder based on his timestamp.<br>  **[api.php](https://github.com/fossasia/open-event-android/blob/development/apk-generator/api/api.php)** A php script that serves as an API and handles incoming requests to the server.\r\n * **[copyapk.sh](https://github.com/fossasia/open-event-android/blob/development/apk-generator/scripts/copyApk.sh)** A bash script that will copy the generated and signed apk to the release folder in `public-html` of the server.\r\n \r\n ## Server Setup\r\n \r\n-\r\n+1. Navigate to server's ```/var/www/``` and install the Android SDK here.\r\n+2. You can do that by following this [thread](http://stackoverflow.com/questions/17963508/how-to-install-android-sdk-build-tools-on-the-command-line/) on stackoverflow.\r\n+2. Edit the .bashrc file located in /root to reference to the SDK you have just installed\r\n+\r\n+   To do this, type in ```nano /root/.bashrc``` and press enter. <br>\r\n+   Navigae to the bottom of the file that opens and add following code there <br> ```export ANDROID_HOME=/var/www/android-sdk-linux ```<br>\r\n+   ```export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools```\r\n+3. Move all the files mentioned in the `scripts` folder (Except `runPy.php`, `upload.php` and `index.html`) into ```/root/scripts```.\r\n+4. Move `runPy.php`, `upload.php`, and `index.html` to ```/var/www/html```\r\n+5. [Install and setup](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04) JAVA on your machine.\r\n+6. Next, install PHP.THis can be done by simply writing `sudo apt-get install php` in your terminal.<br>\r","path":"docs/INSTALLATION_DOCKER.md","position":45,"original_position":45,"commit_id":"c1111c669db4c9d4cd91e9e673016cd234011d45","original_commit_id":"c1111c669db4c9d4cd91e9e673016cd234011d45","user":{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false},"body":"Typo","created_at":"2016-08-19T15:18:27Z","updated_at":"2016-08-19T15:18:27Z","html_url":"https://github.com/fossasia/open-event-android/pull/611#discussion_r75500235","pull_request_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/611","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/75500235"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/611#discussion_r75500235"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/611"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/611","id":81984622,"html_url":"https://github.com/fossasia/open-event-android/pull/611","diff_url":"https://github.com/fossasia/open-event-android/pull/611.diff","patch_url":"https://github.com/fossasia/open-event-android/pull/611.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-android/issues/611","number":611,"state":"open","locked":false,"title":"Add sendgrid configuration and fix simultaneous uploads","user":{"login":"the-dagger","id":6565270,"avatar_url":"https://avatars.githubusercontent.com/u/6565270?v=3","gravatar_id":"","url":"https://api.github.com/users/the-dagger","html_url":"https://github.com/the-dagger","followers_url":"https://api.github.com/users/the-dagger/followers","following_url":"https://api.github.com/users/the-dagger/following{/other_user}","gists_url":"https://api.github.com/users/the-dagger/gists{/gist_id}","starred_url":"https://api.github.com/users/the-dagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-dagger/subscriptions","organizations_url":"https://api.github.com/users/the-dagger/orgs","repos_url":"https://api.github.com/users/the-dagger/repos","events_url":"https://api.github.com/users/the-dagger/events{/privacy}","received_events_url":"https://api.github.com/users/the-dagger/received_events","type":"User","site_admin":false},"body":"This adds sendgrid setup information to all of the installation docs as outlined in #546 and also fixes the issue where file upload was failing if multiple users uploaded a sample zip at once #610 \r\n@mariobehling @mananwason Please review","created_at":"2016-08-19T13:53:43Z","updated_at":"2016-08-19T15:18:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b06a952e7bbfa8e6e99b9d10b83206713652bd7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/611/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/611/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/issues/611/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/c1111c669db4c9d4cd91e9e673016cd234011d45","head":{"label":"the-dagger:fix","ref":"fix","sha":"c1111c669db4c9d4cd91e9e673016cd234011d45","user":{"login":"the-dagger","id":6565270,"avatar_url":"https://avatars.githubusercontent.com/u/6565270?v=3","gravatar_id":"","url":"https://api.github.com/users/the-dagger","html_url":"https://github.com/the-dagger","followers_url":"https://api.github.com/users/the-dagger/followers","following_url":"https://api.github.com/users/the-dagger/following{/other_user}","gists_url":"https://api.github.com/users/the-dagger/gists{/gist_id}","starred_url":"https://api.github.com/users/the-dagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-dagger/subscriptions","organizations_url":"https://api.github.com/users/the-dagger/orgs","repos_url":"https://api.github.com/users/the-dagger/repos","events_url":"https://api.github.com/users/the-dagger/events{/privacy}","received_events_url":"https://api.github.com/users/the-dagger/received_events","type":"User","site_admin":false},"repo":{"id":65733021,"name":"open-event-android","full_name":"the-dagger/open-event-android","owner":{"login":"the-dagger","id":6565270,"avatar_url":"https://avatars.githubusercontent.com/u/6565270?v=3","gravatar_id":"","url":"https://api.github.com/users/the-dagger","html_url":"https://github.com/the-dagger","followers_url":"https://api.github.com/users/the-dagger/followers","following_url":"https://api.github.com/users/the-dagger/following{/other_user}","gists_url":"https://api.github.com/users/the-dagger/gists{/gist_id}","starred_url":"https://api.github.com/users/the-dagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-dagger/subscriptions","organizations_url":"https://api.github.com/users/the-dagger/orgs","repos_url":"https://api.github.com/users/the-dagger/repos","events_url":"https://api.github.com/users/the-dagger/events{/privacy}","received_events_url":"https://api.github.com/users/the-dagger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/the-dagger/open-event-android","description":"The Open Event Android Client","fork":true,"url":"https://api.github.com/repos/the-dagger/open-event-android","forks_url":"https://api.github.com/repos/the-dagger/open-event-android/forks","keys_url":"https://api.github.com/repos/the-dagger/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-dagger/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-dagger/open-event-android/teams","hooks_url":"https://api.github.com/repos/the-dagger/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/the-dagger/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/the-dagger/open-event-android/events","assignees_url":"https://api.github.com/repos/the-dagger/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/the-dagger/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/the-dagger/open-event-android/tags","blobs_url":"https://api.github.com/repos/the-dagger/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-dagger/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-dagger/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-dagger/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-dagger/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/the-dagger/open-event-android/languages","stargazers_url":"https://api.github.com/repos/the-dagger/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/the-dagger/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/the-dagger/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/the-dagger/open-event-android/subscription","commits_url":"https://api.github.com/repos/the-dagger/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-dagger/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-dagger/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-dagger/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-dagger/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/the-dagger/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-dagger/open-event-android/merges","archive_url":"https://api.github.com/repos/the-dagger/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-dagger/open-event-android/downloads","issues_url":"https://api.github.com/repos/the-dagger/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/the-dagger/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/the-dagger/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/the-dagger/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-dagger/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/the-dagger/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/the-dagger/open-event-android/deployments","created_at":"2016-08-15T13:08:16Z","updated_at":"2016-08-15T13:08:18Z","pushed_at":"2016-08-19T13:52:10Z","git_url":"git://github.com/the-dagger/open-event-android.git","ssh_url":"git@github.com:the-dagger/open-event-android.git","clone_url":"https://github.com/the-dagger/open-event-android.git","svn_url":"https://github.com/the-dagger/open-event-android","homepage":null,"size":144692,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"40e0b8de4cad08e019004b7aa6c6869a2acb2056","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269607,"name":"open-event-android","full_name":"fossasia/open-event-android","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-android","description":"The Open Event Android App Generator","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-android","forks_url":"https://api.github.com/repos/fossasia/open-event-android/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-android/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-android/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-android/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-android/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-android/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-android/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-android/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-android/deployments","created_at":"2015-05-08T09:04:11Z","updated_at":"2016-08-19T14:00:05Z","pushed_at":"2016-08-19T15:07:29Z","git_url":"git://github.com/fossasia/open-event-android.git","ssh_url":"git@github.com:fossasia/open-event-android.git","clone_url":"https://github.com/fossasia/open-event-android.git","svn_url":"https://github.com/fossasia/open-event-android","homepage":"http://45.55.58.149","size":191684,"stargazers_count":67,"watchers_count":67,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":18,"forks":107,"open_issues":18,"watchers":67,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/611"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/611"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/611"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/611/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/611/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/611/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-android/statuses/c1111c669db4c9d4cd91e9e673016cd234011d45"}}}}
{"actor":{"display_login":"mananwason"}}