COMANDI A CAZZO DI CANE DA RIORDINARE QUANDO AVRO' VOGLIA
curl -s https://getcomposer.org/installer | php
php composer.phar create-project symfony/framework-standard-edition /var/www/meugene/
php composer.phar create-project symfony/framework-standard-edition /var/www/taxi/ 2.2.2
sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
___________
php app/console generate:bundle --namespace=Acme/PanelBundle
___________
php app/console doctrine:generate:entities Acme/PanelBundle/Entity/Img
php app/console doctrine:schema:update --force
php app/console doctrine:schema:update --dump-sql
___________
php app/console generate:doctrine:crud --entity=AcmeProvaBundle:About
___________
php app/console doctrine:generate:entity --entity="AcmePanelBundle:Imga" --fields="farm_id:string(50) server_id:string(50) photo_id:string(50) secret:string(50) album:string(50) order:string(50)"
php app/console doctrine:generate:entity --entity="AcmePanelBundle:Shops" --fields="id_company:integer(5) postcode:string(50) address:string(100) lon:string(50) lat:string(50) area:integer(2) zone:integer(3)"
php app/console doctrine:generate:entity --entity="AcmePanelBundle:About" --fields="about:text"
___________
svuotare cache
php app/console cache:clear --env=prod --no-debug
________________________________
fosuserBundle
_____________________________
git init
apri .gitignore
controllo cartella vendor
git commit -m "messaggio"
___
git add .
git commit -m "Settato fosuserbundle"
git push -u origin master
________________________
sudo git pull -u origin master
_______________
git fetch origin
git reset --hard origin/master
____________________________
venditori
php composer.phar update
php composer.phar update new/package
php composer.phar install
php composer.phar update bmatzner/jquery-bundle
Download the bundle using Composer
$ php composer.phar update bmatzner/jquery-bundle
Install assets
Given your server's public directory is named "web", install the public vendor resources
$ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources
$ php app/console assets:install --symlink web
,
"branch-alias": {
"dev-master": "2.2-dev"
}
_________________________________________________________
ASSETIC
php app/console assetic:dump --env=prod --no-debug
___________________________________________________________________
app/console fos:user:create
app/console fos:user:promote
_______________________________________________
ssh -l ubuntu -i server.pem 54.228.200.245
Nessun commento:
Posta un commento