Jump to content

eliasfernandez

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

1,597,044 profile views

eliasfernandez's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Of course. I know this simplicity always have a huge amount of programming hours from smart people. Thanks for your tought job ¡ I'll try other way.
  2. I'm currently writing a simple bash to install new prestashop project on a centos 6 dedicated server. The main idea behind is to automate the creation of new sites in an easy proccess. This way, the developer, simply type the project name and sql connection credentials and the script install all the neccesary scripts including host configuration: #!/bin/sh read -p "Nombre del proyecto (será el mismo que la carpeta y el nombre de la bbdd): " project read -p "Dominio (es recomedable un subdominio tipo xxx.desarrollotrevenque.com): " domain read -p "Usuario de la bbdd: " user read -p "Contraseña de la bbdd: " pass read -p "email del proyecto: " email echo "Iniciando proyecto $project ..." # creamos la carpeta de nuestro proyecto mkdir /web_path/$project cp -Rf web_template/* /web_path/$project cp web_template/.gitignore /web_path/$project cd /web_path/$project sudo chown -Rf code:apache web log sudo chmod -Rf 775 web log echo "<VirtualHost *:80> ... $project configuration--- </VirtualHost>" >> vhost/dev.vhost sudo ln -s /web_path/$project/vhost/dev.vhost "/etc/httpd/sites-available/$project.vhost.conf" # Instalamos Prestashop wget https://github.com/PrestaShop/PrestaShop/archive/1.6.zip unzip 1.6.zip mv PrestaShop-1.6 /web_path/$project/web mysql -u$user -p$pass -e " CREATE DATABASE $project" php /web_path/$project/web/install-dev/index_cli.php --domain=$domain --db_server=localhost --db_name=$project --db_user=$user --db_password=$pass --email=$email --password=password --first-name=test--second-name=test--name=$project --language=es It works like a charm. But the default prestashop installed doesn't have: Modules Any sample data Ideally, for me, the script must include two options: Modules option: --modules=module1,module2, or maybe something lik --default-modules=true Data: --fixtures=/path/ Hope it helps
  3. I'll stay tuned. I really think it would be a great improvement. If i can help you anyway just tell me. Thanx
  4. I'm writing a bash script to install prestashop and apache configuration via command line . php install-dev/index_cli.php --domain=$domain --db_server=localhost --db_name=$project \ --db_user=$user --db_password=$pass --email=$email --password=... --name=$project as said in the docs: http://doc.prestashop.com/display/PS15/Installing+PrestaShop+using+the+command+line It works fine, except for the modules and fixtures, that are not loaded. I think this is the best default behavior but: Is there a way to automate fixtures and modules configuration ? Many Thanks in advance¡
×
×
  • Create New...