views:

188

answers:

3

I have created a project(on my Localhost) in symfony(PHP Framework), and need to upload it on server(i.e the WEB Server), but i dont know how to do that, i got many methods on net, but i was not able to follow that. so please help.

A: 

just push it in your project's lib/vendor/symfony dir and update you ProjectConfiguration.class.php like this

<?php

require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()  
  {
       [...]Normal setup plugins, etc.
  }
}

If you use SVN for managing your project source, using an external source to grab symfony is generaly advised, it will enlight your repository and allow easy updates.

Benoit
no i am not using any SVN to maintain my code, just need to upload the code from Localhost To the Web server..
Harish Kurup
the you can push the framework the same way, FTP or else..
Benoit
additionnaly to this it seems that you can do what richsage explains using FTP Cf. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/22#chapter_22_sub_deploying_strategies
Benoit
A: 

Use the project:deploy task that Symfony provides. Add configuration details for your host into config/properties.ini and then you can call something like

./symfony project:deploy myhostconfig [--go]

Running without the --go flag will do a dry run without uploading any files. If you're using Symfony 1.3+, add in the -t flag which will show you what files are due to be uploaded etc.

More info on this is in the Symfony docs for deployment.

richsage
A: 

Read this: Deploy Symfony project to bluehost.com
This tutorial is based on the experience of the open source project "bookeet", You could refer to it for the source code detail.

Peter Long
Bookeet project: http://code.google.com/p/bookeet/
Peter Long
thank u @Peter Long i will try that..
Harish Kurup