Skip to Content

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

This question has been flagged
1 Reply
101 Views
Author Best Answer

Create Amazon server

Launch a new instanceSelect the Debian Jessie, in marketplace AMI'sSelect m4.xlarg eenable 'Protect against accidental terminationset size to 60g, choose IO1, iops 1800tag name of isntance to eg amr-s16select existing security groups: SSH, Webselect IS or generate a new key.If generating a new key save here: https://code.inspiredsoftware.com.au/inspired-software/amazon-ec2-keys

fork this repo : https://code.inspiredsoftware.com.au/inspired-software/dedicated-odoo-server-template update variables below

edit and run the script found here:

https://code.inspiredsoftware.com.au/inspired-software/amazon-setup-scripts/blob/master/install-dedicated-server.sh

./init_run_as_root.sh

./update_run_as_odoo.py

configure:
nano /etc/nginx/sites-enabled/odoo




Generate a new password for postgres and record here: Passwords

http://passwordsgenerator.net/

Generate a new password for client_odoo and record here: Passwords

sudo -u postgres psql postgres \password postgres CREATE USER client_odoo; \password client_odoo ALTER USER client_odoo CREATEDB; \q


## dont need this? Install missing fonts

apt-get update \ 

&& apt-get -y install unzip \ && cd /usr/lib/python2.7/dist-packages/reportlab \ && mkdir fonts \ && curl -o fonts.zip -SL http://www.reportlab.com/ftp/pfbfer.zip \ && unzip fonts.zip -d ./fonts \ && rm fonts.zip 



edit nginx/odoo.site with the correct domain name, and cert path

add certificates to the nginx/certs folder

Update monitoring

nano /data/telegraf_physical/config/telegraf.conf 

add the postgres password (search ctrl-x for XXXXXXXX)

Start

service nginx restart \
&& service odoo start
update the config file
if odoo doesn't run reboot 


Avatar
Discard