diff --git a/app/views/challenges/_form.html.erb b/app/views/challenges/_form.html.erb
index a97f6144d..5906c63d5 100644
--- a/app/views/challenges/_form.html.erb
+++ b/app/views/challenges/_form.html.erb
@@ -85,6 +85,10 @@
<%= f.text_field :path, :class => "panel-form-width-690 panel-box-sizing fl", :no_label => true, :placeholder => "进入实训后将默认打开该文件,如:app/controllers/welcome_controller.rb", :maxlength => "256" %>
+
+
+ <%= f.text_field :exec_path, :class => "panel-form-width-690 panel-box-sizing fl", :no_label => true, :placeholder => "输入关卡需要执行的文件路径,如:app/controllers/welcome_controller.rb", :maxlength => "256" %>
+
diff --git a/app/views/challenges/show.html.erb b/app/views/challenges/show.html.erb
index 13d2158c4..98d8cfcdc 100644
--- a/app/views/challenges/show.html.erb
+++ b/app/views/challenges/show.html.erb
@@ -52,6 +52,12 @@
<%= @challenge.path.blank? ? "无" : (h @challenge.path.html_safe) %>
+
+
+
+ <%= @challenge.exec_path.blank? ? "无" : (h @challenge.exec_path) %>
+
+
diff --git a/db/migrate/20170427031044_add_exec_path_to_challenges.rb b/db/migrate/20170427031044_add_exec_path_to_challenges.rb
new file mode 100644
index 000000000..e9aaa7076
--- /dev/null
+++ b/db/migrate/20170427031044_add_exec_path_to_challenges.rb
@@ -0,0 +1,5 @@
+class AddExecPathToChallenges < ActiveRecord::Migration
+ def change
+ add_column :challenges, :exec_path, :string
+ end
+end