歡迎您光臨本站 註冊首頁

trac-admin 創建問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

trac-admin 創建問題

# trac-admin  hello initenv      
Creating a new Trac environment at /tmp/test/hello

Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name >

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string >

Please specify the type of version control system,
By default, it will be svn.

If you don't want to use Trac with version control integration,
choose the default here and don't specify a repository directory.
in the next question.

Repository type >

Please specify the absolute path to the version control
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.

Path to repository >

以上命令是通過交互模式創建,但是我想通過一個命令就創建好trac,看了trac-admin --help 是在看不懂這句話的語法,知道的給個實例,Thank,s
initenv <projectname> <db> <repostype> <repospath>
        -- Create and initialize a new environment from arguments
《解決方案》

<>裡面的內容是你要輸入的內容,剛才交互創建的時候,就有參數的例子,就是[]裡面的內容
《解決方案》

裡面的內容是你要輸入的內容,剛才交互創建的時候,就有參數的例子,就是[]裡面的內容
chenyx 發表於 2011-09-08 14:58 http://bbs.chinaunix.net/images/common/back.gif


    # trac-admin initenv  Project sqlite:db/trac.db svn /path/to/repos         
*** Unknown syntax: Project 'sqlite:db/trac.db' 'svn' '/path/to/repos'

語法錯誤,你能否舉個例子
《解決方案》

蛋疼的語法,說明不清不出的,下面這個就可以用了
trac-admin /tmp/test initenv ]

[火星人 ] trac-admin 創建問題已經有369次圍觀

http://coctec.com/docs/service/show-post-14042.html