Jump to content

Talk:Reading/Web/Setting up a staging environment

Add topic
From mediawiki.org
Latest comment: 9 years ago by Robmoen in topic Permissioning problems

Manual steps

[edit]

It seems like the three sections 'Set up the Selenium_newuser and Selenium_user accounts' , 'Set up a Spanish interwiki link' and 'Configure the MobileFrontend extension' have lots in common with Reading/Browser_tests/Setting_up_a_browser_test_instance.

Rob wrote a script that could automate a lot of this and it might be worth thinking about refactoring it so it can be used for both to avoid these manual steps. Jdlrobson (talk) 20:21, 29 July 2015 (UTC)Reply

Also what are they needed for? Jdlrobson (talk) 20:49, 29 July 2015 (UTC)Reply

Permissioning problems

[edit]

I keep running into various permission problems: warning: unable to access '/home/jdlrobson/.config/git/attributes': Permission denied

  • /10 * * * * labs-vagrant git-update

Any idea why/how to get around these? Otherwise instructions were great! Jdlrobson (talk) 21:01, 29 July 2015 (UTC)Reply

  • Seems this is happening because vagrant user doesn't have access to /home/jdlrobson/.config/git/attributes. Perhaps setting up the cron job to run under the user who creates the instance will solve this ? Robmoen (talk) 22:37, 30 July 2015 (UTC)Reply
  • Yarrrp! Right above the first pushd ... command you'll see sudo su vagrant. I ran most of the commands as the vagrant user and so set up the crontab as the vagrant user too Phuedx (WMF) (talk)

Suggestions

[edit]

Set up regular codebase updates

[edit]

To avoid the permission issues, perhaps a solution is to run thnd all e cron job under the user account of whoever sets up the instance?

Set up the Selenium_newuser and Selenium_user accounts

[edit]
php /vagrant/mediawiki/maintenance/createAndPromote.php "Selenium_user" "PasswordHere" --bureaucrat --force --sysop
[edit]
mysql -u root -pvagrant wiki -e "INSERT INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES ('es', 'http://wikifoo.org/es/index.php/$1', 0, 0);"

Tested with the instructions provided, made the above suggestions. All seems good otherwise. Robmoen (talk) 22:35, 30 July 2015 (UTC)Reply