4

Well this mess of a start to a write up worked once. Second run I can't get pass npm build run(I believe npm install is failing due to nodejs version but thats just a guess at this point) I thought I would share for anyone else trying. Also ubuntu 16.04

libboost-python-dev python3-pip wget libffi-dev libexiv2-dev 1. install pyenv - $ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash 2. Use these instructions note to change the commands to .bashrc https://github.com/pyenv/pyenv-installer use this to complete setup $ echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc $ echo 'eval "$(pyenv init -)"' >> ~/.bashrc $ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc $ source ~/.bashrc

  1. pyenv install 3.5.5
  2. pyenv virtualenv 3.5.5 app
  3. clone source cd into throat
  4. pip install -r requirements.txt(Fixes for errors in list below)

Flask==0.11.1 Flask-WTF==0.13.1 bcrypt==3.1.3 flask-assets webassets jsmin cssmin misaka Flask-Login==0.4.0 feedgen flask-caching flask-cache mysqlclient - Install libmysqlclient-dev fixed redis requests pillow pytest sendgrid bs4 flask-oauthlib Flask-SocketIO==2.8.2 eventlet gunicorn cython peewee==3.2.2 - install libsqlite3-dev fixed Flask-Webpack==0.1.0 wheezy.template wheezy.html python-magic py3exiv2 - install libboost-python-dev, libexiv2-dev tinycss2==0.6.1

7.Once all dependancies are installed without errors 7a. install nodejs and npm, symlink "sudo ln -s /usr/bin/nodejs /usr/bin/node"cd 8.sudo npm install 9.sudo npm run build 10. cp example.config.py config.py 11. cd into scripts 12. Set sql root password 12a. change sql root password in config.py & create sql database phuks 13. Run python install.py 14. mysql -u -root -p, SET GLOBAL sql_mode=''; nginx and gunicorn setup https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-14-04 Too be continued

Well this mess of a start to a write up worked once. Second run I can't get pass npm build run(I believe npm install is failing due to nodejs version but thats just a guess at this point) I thought I would share for anyone else trying. Also ubuntu 16.04 libboost-python-dev python3-pip wget libffi-dev libexiv2-dev 1. install pyenv - $ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash 2. Use these instructions note to change the commands to .bashrc https://github.com/pyenv/pyenv-installer use this to complete setup $ echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc $ echo 'eval "$(pyenv init -)"' >> ~/.bashrc $ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc $ source ~/.bashrc 3. pyenv install 3.5.5 4. pyenv virtualenv 3.5.5 app 5. clone source cd into throat 6. pip install -r requirements.txt(Fixes for errors in list below) Flask==0.11.1 Flask-WTF==0.13.1 bcrypt==3.1.3 flask-assets webassets jsmin cssmin misaka Flask-Login==0.4.0 feedgen flask-caching flask-cache mysqlclient - Install libmysqlclient-dev fixed redis requests pillow pytest sendgrid bs4 flask-oauthlib Flask-SocketIO==2.8.2 eventlet gunicorn cython peewee==3.2.2 - install libsqlite3-dev fixed Flask-Webpack==0.1.0 wheezy.template wheezy.html python-magic py3exiv2 - install libboost-python-dev, libexiv2-dev tinycss2==0.6.1 7.Once all dependancies are installed without errors 7a. install nodejs and npm, symlink "sudo ln -s /usr/bin/nodejs /usr/bin/node"cd 8.sudo npm install 9.sudo npm run build 10. cp example.config.py config.py 11. cd into scripts 12. Set sql root password 12a. change sql root password in config.py & create sql database phuks 13. Run python install.py 14. mysql -u -root -p, SET GLOBAL sql_mode=''; nginx and gunicorn setup https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-14-04 Too be continued

6 comments

[–] Polsaker 0 points (+0|-0)

After cloning and cd'ing into throat you should do pyenv local app. You probably have a really old version of node, too.

[–] pmyb2 [OP] 0 points (+0|-0)

You are probably correct. I’m going to take advice I got her run er again and do a new write up.