Skip to content

Deployment of the CVAPP code.

CV App

Login with cvapp user

  1. git clone https://github.com/altran/cvapp.git

Install dependencies

  1. sudo apt-get install python-pip
  2. sudo apt-get install libxml2-dev libxslt1-dev
  3. sudo pip install django-webodt
  4. sudo pip install appy
  5. sudo apt-get install python-lxml
  6. sudo pip install requests (possibly sudo apt-get pip install requests)
  7. sudo apt-get install python-imaging
  8. sudo pip install django-haystack
  9. sudo pip install django-admin-bootstrapped
  10. sudo pip install pysolr

Db

Copy database to /home/cvapp/db/cv.db DB-file must have write-permission for www-data

Photos

Copy photos to /var/www/media/photos Photos-folder must have write-permission for www-data

Google Account for converting documents (deprecated - we now use soffice)

Must be authorized for the application's server location. If the Download .DOC and .PDF doesn't work the first time, log in manually to Google. There you'll be prompted to approve suspicious login attempt. After this, the server/location will be approved, and you're good to go.

Setting up new server with ACS (WIP)

DNS SETUP

Add DNS record, wait a bit for it to register

APACHE CONFIG

  • Update acs.conf in sites-enabled
  • Turn on SSL if needed -- SSLEngine on -- a2enmod ssl -- Add certificates to acs.conf

ACS LOCALSETTINGS

  • Update allowed-hosts
  • Update DB-reference
  • Update SSO-reference -- Make sure appname and appkey is correct for SSO-setup

SETUP DB

  • Might need to add old sources to apt source list -- psql -h acsdemo1.cmbef5jatjlu.us-east-1.rds.amazonaws.com acsdemo1 acsdemo1 -- python /home/acs-user/acs/cvapp/manage.py syncdb
  • Load data -- sudo python /home/acs-user/acs/cvapp/manage.py loaddata cvdemo.json

ACS DEMO DAILY RESET

  • Prod-data in json.
  • Run CRON -- Clear DB -- Load JSON-data -- Clear images folder -- Copy images from source