diff --git a/README.md b/README.md index d19ce4f2a0..5bb03e30a5 100644 --- a/README.md +++ b/README.md @@ -69,10 +69,11 @@ To setup the Edly edx themes repo. "/edx/src/edly-edx-themes" ] ``` -7. Run `paver update_assets` in the docker shell from the `/edx/app/edxapp/edx-platform` folder. -8. Exit the docker shell using `Ctrl+D` -9. Run `make lms-restart` -10. Go to `http://localhost:18000/admin` and login using `edx` and `edx`. +7. Run `docker-compose restart lms` in the `/edly/edX` folder. +8. Run `paver update_assets` in the docker shell from the `/edx/app/edxapp/edx-platform` folder. +9. Exit the docker shell using `Ctrl+D` +10. Run `make lms-restart` +11. Go to `http://localhost:18000/admin` and login using `edx` and `edx`. 12. Go to `http://localhost:18000/admin/sites/site/` and add a new site with values `domain` as `localhost:18000` and `display name` as `st-lutherx`. 13. Go to `http://localhost:18000/admin/theming/sitetheme/` and add a new theme with values `site` as `localhost:18000` and `Theme dir name` as `st-lutherx`. 14. This should work. diff --git a/repo.sh b/repo.sh index dbea6c8121..21d3da0288 100755 --- a/repo.sh +++ b/repo.sh @@ -30,7 +30,6 @@ repos=( "https://github.com/edx/ecommerce.git" "https://github.com/edx/edx-e2e-tests.git" "https://github.com/edx/edx-notes-api.git" - "https://github.com/edx/edx-platform.git" "https://github.com/edx/xqueue.git" "https://github.com/edx/edx-analytics-pipeline.git" "https://github.com/edx/gradebook.git" @@ -41,6 +40,8 @@ private_repos=( "https://github.com/edx/edx-themes.git" ) +edx_repo="https://github.com/edly-io/edx-platform.git" + wp_plugin_repos=( "git@github.com:edly-io/edly-wp-plugin.git" ) @@ -133,11 +134,23 @@ _get_latest_wp_tag() { clone () { + _clone "${repos[@]}" WP_PLUGIN_DIR=$DEVSTACK_WORKSPACE/wp_plugins WP_THEME_DIR=$DEVSTACK_WORKSPACE/wp_themes + # clone Edly edx-platform + cd $DEVSTACK_WORKSPACE + if [ ! -d $DEVSTACK_WORKSPACE/edx-platform ]; then + git clone $edx_repo --branch develop + else + printf "The [%s] repo is already checked out. \n" $repo + fi + + + + [ -d $WP_PLUGIN_DIR ] || mkdir $WP_PLUGIN_DIR [ -d $WP_THEME_DIR ] || mkdir $WP_THEME_DIR diff --git a/wordpress/wp-config.php b/wordpress/wp-config.php index 05d10df8b0..d1749352b5 100644 --- a/wordpress/wp-config.php +++ b/wordpress/wp-config.php @@ -47,6 +47,11 @@ define('IS_LOGGED_IN_COOKIE', 'edxloggedin'); define('USER_INFO_COOKIE', 'edx-user-info'); +define('ENROLLMENT_API_URL', LMS_BASE_URL . '/api/enrollment/v1'); +define('ENROLLMENT_STATUS_API_URL', LMS_BASE_URL . '/api/enrollment/v1/enrollment'); +define('COURSE_DASHBOARD_URL', LMS_BASE_URL . '/dashboard'); +define('COURSE_REGISTER_URL', LMS_BASE_URL . '/register'); +define('COURSE_DETAIL_URL', LMS_BASE_URL . '/courses'); /**#@+ * Authentication Unique Keys and Salts.