Skip to content

Instantly share code, notes, and snippets.

@efischer19
Last active September 22, 2017 13:54
Show Gist options
  • Save efischer19/542ac3ce03907307850fc490f69b2551 to your computer and use it in GitHub Desktop.
Save efischer19/542ac3ce03907307850fc490f69b2551 to your computer and use it in GitHub Desktop.
Developing the assets page with studio-frontend
#!/bin/bash
# the "big hammer", kills any docker instances dead
sh ~/scripts/docker_destroy_all.sh
# delete *everything* I've been working on - it's all checked in right?
rm -rf ~/work/*
cd ~/work
sh ~/scripts/studio_frontend_development_env.sh
echo "That's all, folks!"
echo "Hit http://localhost:18010/assets/course-v1:edX+DemoX+Demo_Course/ (may need to sign in, [email protected]/edx) to see the fancy new assets page in action"
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
#!/bin/bash
# re-build docker devstack
git clone [email protected]:edx/devstack.git
cd devstack
make requirements
make dev.clone
make dev.provision # this takes a while to finish, FYI
make dev.up.all # containers need to be running for the next step
# add studio-frontend to devstack
cd ../src
git clone [email protected]:edx/studio-frontend.git
cd studio-frontend
make devstack-install
make asset-page-flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment