2013-05-03 58 views
-1

我已经成功安装了NetBeans和Symfony2,并在本地运行了我的第一个Hello World。我一直在寻找是否有任何简单的步骤方式将其部署到服务器上,或者将我的情况部署到另一个目录(只是为了测试)。但我仍不确定这将如何工作。我在这方面花了太多时间,我想我会试着给StackOverflow一个。我正在使用XAMPP在Windows上工作。Symfony2部署过程 - windows

+0

你在使用什么服务器? – cheesemacfly 2013-05-03 23:43:33

+0

首先,您应该尝试阅读[documentation](http://symfony.com/doc/current/cookbook/deployment-tools.html)。 – 2013-05-04 01:07:26

+0

即时通讯使用Apache和MySQL,本质上是运行xampp ..我有的第一个项目是在C:\ xampp \ htdocs \ FirstProject – jack 2013-05-04 10:26:19

回答

1

看看到capifony:

http://capifony.org

它基于Capistrano的,这是用于部署回报率的应用程序。

+0

丹尼斯,我回复了你的下面! – jack 2013-05-04 12:30:51

0

丹尼斯,为了运行“gem install capifony”,我不得不安装Ruby2.0,然后安装RubyGems。到目前为止,我在“应用程序/配置/ deploy.rb”下面的代码:

set :application, "set your application name here" 
set :domain,  "#{application}.com" 
set :deploy_to, "/var/www/#{domain}" 
set :app_path, "app" 

set :repository, "#{domain}:/var/repos/#{application}.git" 
set :scm,   :git 
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none` 

set :model_manager, "doctrine" 
# Or: `propel` 

role :web,  domain       # Your HTTP server, Apache/etc 
role :app,  domain       # This may be the same as your `Web` server 
role :db,   domain, :primary => true  # This is where Symfony2 migrations will run 

set :keep_releases, 3 

# Be more verbose by uncommenting the following line 
# logger.level = Logger::MAX_LEVEL 

现在我怎样才能改变这种从部署我的项目“C:\ XAMPP \ htdocs中\ FirstProject”(其中包含部署.rb)例如“C:\ xampp \ htdocs \ FirstProject1”(空!)!