我已经成功安装了NetBeans和Symfony2,并在本地运行了我的第一个hello世界。我一直在四处寻找是否有任何简单的步骤将其部署在服务器上,或者我的情况下部署到另一个目录(只是为了测试)。但我仍然不确定这将如何运作。我花了太多时间在这上面,我想我会试试StackOverflow。我正在使用XAMPP在Windows上工作。
答案 0 :(得分:1)
答案 1 :(得分: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”(空!),例如! / p>