This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
mariadb: | |
image: 'bitnami/mariadb:latest' | |
environment: | |
- MARIADB_USER=bn_moodle | |
- MARIADB_DATABASE=bitnami_moodle | |
- MARIADB_PORT_NUMBER=3306 | |
- ALLOW_EMPTY_PASSWORD=yes | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.typesafe.sbt.{GitPlugin, SbtGit} | |
import sbt._ | |
import sbt.Keys._ | |
import sbt.plugins.JvmPlugin | |
object ReferenceConfGeneratorPlugin extends AutoPlugin { | |
// JvmPlugin is necessary to append to default sbt Keys (e.g. cleanFiles) | |
// see https://github.com/sbt/sbt/issues/1725#issuecomment-63942392 | |
override def requires = GitPlugin && JvmPlugin | |
override lazy val projectSettings: Seq[Def.Setting[_]] = baseReferenceGeneratorSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using indexes: | |
https://pypi.python.org/simple | |
ROUND 1 | |
Current constraints: | |
fs==2.0.3 | |
Finding the best candidates: | |
found candidate fs==2.0.3 (constraint was ==2.0.3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAIL: test_existing_user (registration.tests.browser.browser_registration.BetaTestBrowserTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/vagrant/opencraft/registration/tests/test_views.py", line 335, in test_existing_user | |
self.assert_registration_succeeds(self.form_data) | |
File "/home/vagrant/opencraft/registration/tests/test_views.py", line 76, in assert_registration_succeeds | |
self.assert_success_response(response) | |
File "/home/vagrant/opencraft/registration/tests/test_views.py", line 97, in assert_success_response | |
'successfully sent', response_body) | |
AssertionError: 'Your application for the OpenCraft beta has been successfully sent' not found in '<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 | |
sudo iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name lms.mcka.local; | |
location / { | |
proxy_pass http://localhost:8000; | |
proxy_set_header Host $host; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; | |
add_header "Access-Control-Allow-Credentials" "true"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~ ^/static/(?P<file>.*) { | |
root /edx/var/edxapp/; | |
try_files /staticfiles/$file /course_static/$file =404; | |
# return a 403 for static files that shouldn't be | |
# in the staticfiles directory | |
location ~ ^/static/(?:.*)(?:\.xml|\.json|README.TXT) { | |
return 403; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% elif context_library: | |
<% | |
library_key = context_library.location.course_key | |
index_url = reverse('contentstore.views.library_handler', kwargs={'library_key_string': unicode(library_key)}) | |
import_url = 'TODO' | |
export_url = 'TODO' | |
%> | |
<h2 class="info-course"> | |
<span class="sr">${_("Current Library:")}</span> | |
<a class="course-link" href="${index_url}"> |