{"action":"created","issue":{"url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/860","repository_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder","labels_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/860/comments","events_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/860/events","html_url":"https://github.com/dpgaspar/Flask-AppBuilder/issues/860","id":383988175,"node_id":"MDU6SXNzdWUzODM5ODgxNzU=","number":860,"title":"Flask Appbuilder with EC2 user-data","user":{"login":"Tim-Ho","id":44111564,"node_id":"MDQ6VXNlcjQ0MTExNTY0","avatar_url":"https://avatars0.githubusercontent.com/u/44111564?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim-Ho","html_url":"https://github.com/Tim-Ho","followers_url":"https://api.github.com/users/Tim-Ho/followers","following_url":"https://api.github.com/users/Tim-Ho/following{/other_user}","gists_url":"https://api.github.com/users/Tim-Ho/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim-Ho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim-Ho/subscriptions","organizations_url":"https://api.github.com/users/Tim-Ho/orgs","repos_url":"https://api.github.com/users/Tim-Ho/repos","events_url":"https://api.github.com/users/Tim-Ho/events{/privacy}","received_events_url":"https://api.github.com/users/Tim-Ho/received_events","type":"User","site_admin":false},"labels":[{"id":376427532,"node_id":"MDU6TGFiZWwzNzY0Mjc1MzI=","url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/labels/pending","name":"pending","color":"0e8a16","default":false},{"id":65064865,"node_id":"MDU6TGFiZWw2NTA2NDg2NQ==","url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-24T13:06:07Z","updated_at":"2018-12-08T13:58:48Z","closed_at":null,"author_association":"NONE","body":"Hello, I have a question to ask:\r\nWhen I want to deploy Flask-Appbuilder instance on AWS EC2, I have to SSH to the EC2 instance and type the following command:\r\n1. cd /myweb/flask-appbuilder/\r\n2. source env/bin/activate\r\n2. fabmanager run\r\nMy question is how to avoid typing the below command \r\nand change them into the user data when it comes to Linux/Ubuntu ???\r\n\r\nLooking forward to your reply!\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/comments/445461293","html_url":"https://github.com/dpgaspar/Flask-AppBuilder/issues/860#issuecomment-445461293","issue_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/860","id":445461293,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQ2MTI5Mw==","user":{"login":"Tim-Ho","id":44111564,"node_id":"MDQ6VXNlcjQ0MTExNTY0","avatar_url":"https://avatars0.githubusercontent.com/u/44111564?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim-Ho","html_url":"https://github.com/Tim-Ho","followers_url":"https://api.github.com/users/Tim-Ho/followers","following_url":"https://api.github.com/users/Tim-Ho/following{/other_user}","gists_url":"https://api.github.com/users/Tim-Ho/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim-Ho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim-Ho/subscriptions","organizations_url":"https://api.github.com/users/Tim-Ho/orgs","repos_url":"https://api.github.com/users/Tim-Ho/repos","events_url":"https://api.github.com/users/Tim-Ho/events{/privacy}","received_events_url":"https://api.github.com/users/Tim-Ho/received_events","type":"User","site_admin":false},"created_at":"2018-12-08T13:58:48Z","updated_at":"2018-12-08T13:58:48Z","author_association":"NONE","body":"> The right way to avoid it, is using nginx/apache and wsgi, be aware that 'fabmanager run' is not recommended for production.\r\n\r\nWhen I try to deploy flask-appbuilder website with WSGI and Nginx.\r\nI came across the following issues:\r\n\r\nThis is my flask_settings:\r\nserver {\r\nlocation / {\r\nproxy_pass http://127.0.0.1:8080;\r\nproxy_set_header Host $host;\r\nproxy_set_header X-Real-IP $remote_addr;\r\n}\r\n\r\n}\r\n\r\nAfter type in the command: unicorn run:app\r\nthe prompt will be shown:\r\n2018-12-08 13:06:17,936:INFO:flask_appbuilder.base:Registering class MessageBoardView on menu ProductMessageBoard\r\n2018-12-08 13:06:17,985:INFO:werkzeug: * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)\r\n2018-12-08 13:06:17,986:INFO:werkzeug: * Restarting with stat\r\n[2018-12-08 13:06:18 +0000] [18968] [INFO] Starting gunicorn 19.9.0\r\n[2018-12-08 13:06:18 +0000] [18968] [ERROR] Connection in use: ('127.0.0.1', 8000)\r\n[2018-12-08 13:06:18 +0000] [18968] [ERROR] Retrying in 1 second.\r\n[2018-12-08 13:06:19 +0000] [18968] [ERROR] Connection in use: ('127.0.0.1', 8000)\r\n[2018-12-08 13:06:19 +0000] [18968] [ERROR] Retrying in 1 second.\r\n[2018-12-08 13:06:20 +0000] [18968] [ERROR] Connection in use: ('127.0.0.1', 8000)\r\n[2018-12-08 13:06:20 +0000] [18968] [ERROR] Retrying in 1 second.\r\n[2018-12-08 13:06:21 +0000] [18968] [ERROR] Connection in use: ('127.0.0.1', 8000)\r\n[2018-12-08 13:06:21 +0000] [18968] [ERROR] Retrying in 1 second.\r\n\r\nDon't know where is the problem and how to solve it."}}
{"actor":{"display_login":"Tim-Ho"}}