23 lines
1.0 KiB
HTML
23 lines
1.0 KiB
HTML
{% extends 'shared/base.html' %}
|
||
{% load staticfiles %}
|
||
{% load static %}
|
||
{% load crispy_forms_tags %}
|
||
|
||
{% block title %}导入工程{%endblock %}
|
||
|
||
{% block content %}
|
||
注意:
|
||
首先在/opt/opengrok/source/下将项目clone下来<br>
|
||
然后执行右侧命令,使用opengrok创建索引:java -Xmx524m -jar lib/opengrok.jar -W "/opt/opengrok/data/configuration.xml" -P -S -v -s "/opt/opengrok/source" -d "/opt/opengrok/data"<br>
|
||
在上面都完成之后,工程的名字请务必保持与/opt/opengrok/source的项目名字保持一致<br>
|
||
最后,如果不清楚编程语言或者编程语言可能用到很多,请在编程语言处选择Dont Know<br>
|
||
<div class="col-md-6 col-md-offset-3">
|
||
{{ error_msg }}
|
||
<h5 style="text-align: center">导入工程</h5>
|
||
<form method="post" action="{% url 'projects:new_project' %}" >
|
||
{{ project_form | crispy}}
|
||
{% csrf_token %}
|
||
<input class="btn btn-green" type="submit" value="Submit" />
|
||
</form>
|
||
</div>
|
||
{% endblock %} |