Remove user from Gitorious. Using script/console to manage Gitorious from BackendBy neokrates, written on October 10, 2010 |
howto |
- neokrates
- Email: uwarov@yahoo.com
- Website: http://www.thinkplexx.com
- Join date: 05-31-09
- Posts: 20
Which Selenium configurations do you use to test your web front end?
- We use other tool (80%, 12 Votes)
- Selenium Grid (13%, 2 Votes)
- Selenium Grids under CI (like Hudson or TeamCity) (7%, 1 Votes)
- Single Selenium (0%, 0 Votes)
- Many Selenium grids on one Server (0%, 0 Votes)
- Other config (0%, 0 Votes)
Total Voters: 15
Loading ...
In current version many user related functions are not accessible from Gitorious Web Interface. You can use ruby console to connect with current Gitorious instance and remove the user.
Login to the Gitorious host. You will likely need the root to do that or at least the user under which Gitorious runs.
Find your gitorious console
Smth. like locate console|grep script/console
| 1 |
What is your environment’s name
Per default, environment may be called “production”. To find out, you can try the log directory, in my case it is in /var/www/gitorious/log/. In my case there was production.log.
That is the environment name.
| 2 |
Start console
/var/www/gitorious/script/console
If you guessed your YOUR_ENV_NAME correctly, you get:
Loading production environment (Rails 2.3.5)
| 3 |
Find & delete user
Given your user is “username”, type in console:
user = User.find_by_login "username"
You get smth like:
=> #<User id: 7, login: "username", email: "[email protected]", ... >
to delete type: user.destroy
Have fun
|
LEARN MORE (amazon bookstore)
|
|
TAGS
|
|
RELATED
|
Pages
Posts
|
|
SOCIAL
|
|
INCOMING SEARCH TERMS
|


















