cdQA icon indicating copy to clipboard operation
cdQA copied to clipboard

Automatically deploy demo API

Open fmikaelian opened this issue 5 years ago • 1 comments

The current demo API in the official website is down

We should deploy demo API automatically when updating master branch

We need to find a service provider such as Heroku or equivalent but something free

fmikaelian avatar Oct 13 '19 09:10 fmikaelian

When deploying master branch on heroku app with no Procfile:

-----> Python app detected

-----> Installing python-3.6.9

-----> Installing pip

-----> Installing SQLite3

-----> Installing requirements with pip

       Collecting Flask==1.1.1 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 1))

         Downloading https://files.pythonhosted.org/packages/9b/93/628509b8d5dc749656a9641f4caf13540e2cdec85276964ff8f43bbb1d3b/Flask-1.1.1-py2.py3-none-any.whl (94kB)

       Collecting flask_cors==3.0.8 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 2))

         Downloading https://files.pythonhosted.org/packages/78/38/e68b11daa5d613e3a91e4bf3da76c94ac9ee0d9cd515af9c1ab80d36f709/Flask_Cors-3.0.8-py2.py3-none-any.whl

       Collecting joblib==0.13.2 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 3))

         Downloading https://files.pythonhosted.org/packages/cd/c1/50a758e8247561e58cb87305b1e90b171b8c767b15b12a1734001f41d356/joblib-0.13.2-py2.py3-none-any.whl (278kB)

       Collecting pandas==0.25.0 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 4))

         Downloading https://files.pythonhosted.org/packages/1d/9a/7eb9952f4b4d73fbd75ad1d5d6112f407e695957444cb695cbb3cdab918a/pandas-0.25.0-cp36-cp36m-manylinux1_x86_64.whl (10.5MB)

       Collecting prettytable==0.7.2 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 5))

         Downloading https://files.pythonhosted.org/packages/ef/30/4b0746848746ed5941f052479e7c23d2b56d174b82f4fd34a25e389831f5/prettytable-0.7.2.tar.bz2

       Collecting transformers==2.1.1 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/fd/f9/51824e40f0a23a49eab4fcaa45c1c797cbf9761adedd0b558dab7c958b34/transformers-2.1.1-py3-none-any.whl (311kB)

       Collecting scikit_learn==0.21.2 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 7))

         Downloading https://files.pythonhosted.org/packages/85/04/49633f490f726da6e454fddc8e938bbb5bfed2001681118d3814c219b723/scikit_learn-0.21.2-cp36-cp36m-manylinux1_x86_64.whl (6.7MB)

       Collecting tika==1.19 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 8))

         Downloading https://files.pythonhosted.org/packages/10/75/b566e446ffcf292f10c8d84c15a3d91615fe3d7ca8072a17c949d4e84b66/tika-1.19.tar.gz

       Collecting torch>=1.2.0 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 9))

         Downloading https://files.pythonhosted.org/packages/88/95/90e8c4c31cfc67248bf944ba42029295b77159982f532c5689bcfe4e9108/torch-1.3.1-cp36-cp36m-manylinux1_x86_64.whl (734.6MB)

       Collecting markdown==3.1.1 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 10))

         Downloading https://files.pythonhosted.org/packages/c0/4e/fd492e91abdc2d2fcb70ef453064d980688762079397f779758e055f6575/Markdown-3.1.1-py2.py3-none-any.whl (87kB)

       Collecting tqdm==4.32.2 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 11))

         Downloading https://files.pythonhosted.org/packages/9f/3d/7a6b68b631d2ab54975f3a4863f3c4e9b26445353264ef01f465dc9b0208/tqdm-4.32.2-py2.py3-none-any.whl (50kB)

       Collecting wget==3.2 (from -r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 12))

         Downloading https://files.pythonhosted.org/packages/47/6a/62e288da7bcda82b935ff0c6cfe542970f04e29c756b0e147251b2fb251f/wget-3.2.zip

       Collecting Werkzeug>=0.15 (from Flask==1.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 1))

         Downloading https://files.pythonhosted.org/packages/ce/42/3aeda98f96e85fd26180534d36570e4d18108d62ae36f87694b476b83d6f/Werkzeug-0.16.0-py2.py3-none-any.whl (327kB)

       Collecting click>=5.1 (from Flask==1.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 1))

         Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)

       Collecting itsdangerous>=0.24 (from Flask==1.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 1))

         Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl

       Collecting Jinja2>=2.10.1 (from Flask==1.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 1))

         Downloading https://files.pythonhosted.org/packages/65/e0/eb35e762802015cab1ccee04e8a277b03f1d8e53da3ec3106882ec42558b/Jinja2-2.10.3-py2.py3-none-any.whl (125kB)

       Collecting Six (from flask_cors==3.0.8->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 2))

         Downloading https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl

       Collecting numpy>=1.13.3 (from pandas==0.25.0->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 4))

         Downloading https://files.pythonhosted.org/packages/d2/ab/43e678759326f728de861edbef34b8e2ad1b1490505f20e0d1f0716c3bf4/numpy-1.17.4-cp36-cp36m-manylinux1_x86_64.whl (20.0MB)

       Collecting pytz>=2017.2 (from pandas==0.25.0->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 4))

         Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)

       Collecting python-dateutil>=2.6.1 (from pandas==0.25.0->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 4))

         Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)

       Collecting sacremoses (from transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/1f/8e/ed5364a06a9ba720fddd9820155cc57300d28f5f43a6fd7b7e817177e642/sacremoses-0.0.35.tar.gz (859kB)

       Collecting regex (from transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/e3/8e/cbf2295643d7265e7883326fb4654e643bfc93b3a8a8274d8010a39d8804/regex-2019.11.1-cp36-cp36m-manylinux1_x86_64.whl (643kB)

       Collecting sentencepiece (from transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/14/3d/efb655a670b98f62ec32d66954e1109f403db4d937c50d779a75b9763a29/sentencepiece-0.1.83-cp36-cp36m-manylinux1_x86_64.whl (1.0MB)

       Collecting requests (from transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)

       Collecting boto3 (from transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/8e/a9/1ceaeda8aa5d3effc9098ae301820e27bf54c4000ec6f8ec79f9b265c50e/boto3-1.10.19-py2.py3-none-any.whl (128kB)

       Collecting scipy>=0.17.0 (from scikit_learn==0.21.2->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 7))

         Downloading https://files.pythonhosted.org/packages/80/72/a26272b99220804038d8ac4aabe8383cfd969ec548695b0df258058ee919/scipy-1.3.2-cp36-cp36m-manylinux1_x86_64.whl (25.2MB)

       Collecting MarkupSafe>=0.23 (from Jinja2>=2.10.1->Flask==1.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 1))

         Downloading https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl

       Collecting idna<2.9,>=2.5 (from requests->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)

       Collecting certifi>=2017.4.17 (from requests->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl (154kB)

       Collecting chardet<3.1.0,>=3.0.2 (from requests->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)

       Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/b4/40/a9837291310ee1ccc242ceb6ebfd9eb21539649f193a7c8c86ba15b98539/urllib3-1.25.7-py2.py3-none-any.whl (125kB)

       Collecting jmespath<1.0.0,>=0.7.1 (from boto3->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/83/94/7179c3832a6d45b266ddb2aac329e101367fbdb11f425f13771d27f225bb/jmespath-0.9.4-py2.py3-none-any.whl

       Collecting botocore<1.14.0,>=1.13.19 (from boto3->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/18/e5/0f29669244ffacc15c4cec9e10d75c26e7d300e1786e79514e62373e648c/botocore-1.13.19-py2.py3-none-any.whl (5.4MB)

       Collecting s3transfer<0.3.0,>=0.2.0 (from boto3->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/16/8a/1fc3dba0c4923c2a76e1ff0d52b305c44606da63f718d14d3231e21c51b0/s3transfer-0.2.1-py2.py3-none-any.whl (70kB)

       Collecting docutils<0.16,>=0.10 (from botocore<1.14.0,>=1.13.19->boto3->transformers==2.1.1->-r /tmp/build_bcc6a26026f442757fc10adbdf25eb7f/requirements.txt (line 6))

         Downloading https://files.pythonhosted.org/packages/22/cd/a6aa959dca619918ccb55023b4cb151949c64d4d5d55b3f4ffd7eee0c6e8/docutils-0.15.2-py3-none-any.whl (547kB)

       Installing collected packages: Werkzeug, click, itsdangerous, MarkupSafe, Jinja2, Flask, Six, flask-cors, joblib, numpy, pytz, python-dateutil, pandas, prettytable, tqdm, sacremoses, regex, sentencepiece, idna, certifi, chardet, urllib3, requests, jmespath, docutils, botocore, s3transfer, boto3, transformers, scipy, scikit-learn, tika, torch, markdown, wget

         Running setup.py install for prettytable: started

           Running setup.py install for prettytable: finished with status 'done'

         Running setup.py install for sacremoses: started

           Running setup.py install for sacremoses: finished with status 'done'

         Running setup.py install for tika: started

           Running setup.py install for tika: finished with status 'done'

         Running setup.py install for wget: started

           Running setup.py install for wget: finished with status 'done'

       Successfully installed Flask-1.1.1 Jinja2-2.10.3 MarkupSafe-1.1.1 Six-1.13.0 Werkzeug-0.16.0 boto3-1.10.19 botocore-1.13.19 certifi-2019.9.11 chardet-3.0.4 click-7.0 docutils-0.15.2 flask-cors-3.0.8 idna-2.8 itsdangerous-1.1.0 jmespath-0.9.4 joblib-0.13.2 markdown-3.1.1 numpy-1.17.4 pandas-0.25.0 prettytable-0.7.2 python-dateutil-2.8.1 pytz-2019.3 regex-2019.11.1 requests-2.22.0 s3transfer-0.2.1 sacremoses-0.0.35 scikit-learn-0.21.2 scipy-1.3.2 sentencepiece-0.1.83 tika-1.19 torch-1.3.1 tqdm-4.32.2 transformers-2.1.1 urllib3-1.25.7 wget-3.2

-----> Discovering process types

       Procfile declares types -> (none)

-----> Compressing...

 !     Compiled slug size: 826.7M is too large (max is 500M).

 !     See: http://devcenter.heroku.com/articles/slug-size

 !     Push failed

Error: https://devcenter.heroku.com/articles/slug-compiler#slug-size

fmikaelian avatar Nov 17 '19 14:11 fmikaelian