Closed valentierra closed 3 months ago
I managed to get an initial solution. Happy to share it and see how to improve it by taking security risks into account.
psql -U postgres Password for user postgres: **** ; Input your application password
postgres=# drop database if exists TESTING_DATABASE_NAME;
postgres=# create database TESTING_DATABASE_NAME;
postgres=# grant all privileges on database TESTING_DATABASE_NAME to bn_odoo with grant option;
postgres=# alter database TESTING_DATABASE_NAME owner to bn_odoo; postgres=# \q
psql -U postgres TESTING_DATABASE_NAME < backup.sql
sudo nano /opt/bitnami/apache/conf/vhosts/odoo-https-vhost.conf <VirtualHost *:443> ServerName mydomain.xyz ; Production domain ServerAlias test.mydomain.xyz www.mydomain.xyz ; Testing domain and other domains Rest of the configuration...
Exit and Save (Ctr X + Y + Enter)
sudo nano /opt/bitnami/apache/conf/vhosts/odoo-vhost.conf <VirtualHost *:80> ServerName mydomain.xyz ; Production domain ServerAlias test.mydomain.xyz www.mydomain.xyz ; Testing domain and other domains Rest of the configuration...
Exit and Save (Ctr X + Y + Enter)
sudo nano /opt/bitnami/odoo/conf/odoo.conf db_name = bitnami_odoo, TESTING_DATABASE_NAME
sudo /opt/bitnami/ctlscript.sh stop
sudo rsync -avz /bitnami/odoo/data/filestore/bitnami_odoo/* /bitnami/odoo/data/filestore/TESTING_DATABASE_NAME/
sudo /opt/bitnami/ctlscript.sh start
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Describe your issue as much as you can
Hi there,
I'd like to know what would be the right general procedure to enable an Odoo testing environment, considering the persistent configuration Bitnami Odoo image has by default.
I am using a Bitnami Odoo image from AWS. Any guidance is much appreciated.