Technical blog of COil: Symfony, PHP, PEAR & webdev

» Collapse all «

Tag - unix


Friday 25 May 2012

[Snippet] Bash script to generate Symfony2 doctrine files

Hi Symfonians ! :)

Here is a very basic bash script to help generate files for a given entity of your database, useful when you don't want to reverse engineer all the tables: (replace MyBundle and MyNamespace by your own values)

./ Product

PS: Note that the filter allow to generate more that one entity. (ex: "Product", "ProductFoo"...)

Thursday 9 February 2012

Simple bash script to update Symfony2

As you noticed there are frequent maintenance releases of Symfony2, the 2.0.10 version is already out. To avoid doings thing manually I use this simple bash script to make the update: (It works with a Symfony2 standard edition). To use it, just launch the script at the root of your project: (be careful as it will delete your vendor directory)

./update_symfony 2.0.10

The bash script:

See you. :)

Other related posts;

Wednesday 19 October 2011

Blog updated and ready to rock !

Not related to symfony but I finally managed to migrate my dedicated server to a new one:

  • The server was switched from a RPS (Real Private Server) from OVH (which is no more sold) to a VPS1 (always from OVH)
  • I started with a fresh new Ubuntu 10.04 LTS distribution instead of the old 8.04 (11.04 was not available when I installed it)
  • The blog was migrated form Dotclear1 to Dotclear2 (I also had to convert the theme to the new Dotclear2 format)
  • The photo gallery was migrated from gallery2 to gallery3

Always nice to start with a new full fresh server installation, because obviously as you gained experience, you can set-up things in a better way you did it 3 years ago. But sometimes you end with setting the same things as it just work well and do the job. :)
I am really happy with the VPS, it's really fast even it's the least powerful offer of OVH of this kind ! I have 50go which is 40go more than I actually need. It's also Symfony2 ready. ;)