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
- pyenv install 3.5.5
- pyenv virtualenv 3.5.5 app
- clone source cd into throat
- 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
I did use pip install -r requirements.txt but it often failed because I didn't always have all the needed packages installed. now that I know them better I'll probably use it. does this mean @polsaker will reee at me too? I'm not sure I want that. What do you guys run for production? I'm going to try the whole thing under debian tonight and see what I get.
As a long time helpdesk/sysadmin/itconsultant why did your computer freeze? Are you sure the notes are not sitting in a temp file in your profile?
EDIT: Also thanks for the node install command appreciated I'll try it and see what I get.