Trace: series ralph_3

Ralph 3

virtualenv

$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install nodejs libmariadbclient-dev redis-server mariadb-server
$ sudo npm install -g bower
$ sudo npm install -g gulp
$ virtualenv --python=/usr/bin/python3.5 /home/emonge/ralph
$ source /home/emonge/ralph/bin/activate
$ cd /home/emonge/ralph
$ git clone https://github.com/allegro/ralph.git
$ cd /home/emonge/ralph/ralph
$ make install
$ make menu
$ make install-test
$ gulp
$ python setup.py install

Edit $HOME/.profile

export DATABASE_NAME=ralph
export DATABASE_USER=ralph
export DATABASE_PASSWORD=ralph
export DATABASE_HOST=127.0.0.1
export RALPH_DEBUG=1

Create the database, and run the server:

$ ralph migrate
$ ralph sitetree_resync_apps
$ ralph createsuperuser
$ ralph runserver 127.0.0.1:8001

Other stuff

  • Add Datacenter
  • Add Server Room
  • Add Racks
  • Add Manufacturer
  • Add Category
  • Add Model
  • Add Service
  • Add Environment
  • Add Hardware

Apache 2 configuration

<VirtualHost *:8000>
  ProxyPass / http://127.0.0.1:8001/
  ProxyPassReverse / http://127.0.0.1:8001/
  SetEnvIf X-Url-Scheme https HTTPS=1
SSLCertificateFile /etc/letsencrypt/live/mycloud.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mycloud.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
ralph_3.txt · Last modified: 2019/01/10 18:22
Public Domain Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain