我已经成功安装了 NetBeans 和 Symfony2,并在本地运行了我的第一个 hello world。我一直在环顾四周,看看是否有任何简单的逐步方法可以将其部署到服务器上,或者对于我的情况来说,部署到另一个目录(只是为了测试)。但我仍然不确定这将如何工作。我在这上面花了太多时间,我想我会试试 StackOverflow。我正在使用 XAMPP 在 Windows 上工作。
问问题
284 次
2 回答
1
于 2013-05-03T20:48:21.450 回答
0
Denis,为了运行“gem install capifony”,我必须先安装 Ruby2.0,然后再安装 RubyGems。到目前为止,我在“app/config/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”(包含 deploy.rb)部署到“C:\xampp\htdocs\FirstProject1”(空!)例如!
于 2013-05-04T10:40:14.733 回答