numanWD Posted February 29, 2016 Share Posted February 29, 2016 (edited) Hi, First I would like to give thanks for this amazing platform you are building. I have started to play with the latest version of PrestaShop 1.7 in develop. The thing I am trying to achieve is a clean deployment integration with PrestaShop.Why?To keep my local, develop and production environments sync but with differents configuration in databases, debug ... Currently I am using semaphore "continuous integration and deployment service " Part of my script to create and deploy it is: cp ~/parameters_stage.yml app/config/parameters.yml composer config --global github-oauth.github.com {token} composer install rsync -hiav --delete --exclude='{.git,settings.inc.php}' * semaphore@{server}:/var/www/{domain}/public_html Later one manually I have to create settings.inc.php using the visual interface (installer). Could we have a script from command line to generate this settings.inc.php base in our parameters.yml? another question is why do we have to have parameters.yml and settings.inc.php with very similar information about our database configuration? Could we remove some info about db and left the salt and other relevant info?The last step is go to the database table "ps_configuration" and locate the records for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL. Change these to the new domain name. Could we add as in wordpress and other platform in the parameters.yml or settings.inc.php this constants (PS_SHOP_DOMAIN)? In that way the integration in different environment should be transparent. Thanks for your help Edited March 1, 2016 by numanWD (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now