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.
just push it in your project's lib/vendor/symfony
dir and update your 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.
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.
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.
精彩评论