to master branch 3. trigger ➞ updates course on staging server 4. review on staging, repeat as necessary 5. merge to live branch 6. trigger ➞ updates course on production server 9 / 30
u - e d x a p p - s / b i n / b a s h . e d x a p p _ e n v m k d i r / e d x / v a r / e d x a p p / c o u r s e _ r e p o s p y t h o n e d x - p l a t f o r m / m a n a g e . p y l m s - - s e t t i n g s = a w s \ g i t _ a d d _ c o u r s e h t t p : / / g i t h u b . c o m / e d x / e d x - d e m o - c o u r s e Options Directory to check out into Branch to use 15 / 30
E _ S Y S A D M I N _ D A S H B O A R D = T r u e flag in F E A T U R E S dict Head to: h t t p s : / / < y o u r _ i n s t a n c e > / s y s a d m i n with global staff privs 16 / 30
u - e d x a p p - s / b i n / b a s h . e d x a p p _ e n v m k d i r / e d x / v a r / e d x a p p / e x p o r t _ c o u r s e _ r e p o s c d e d x - p l a t f o r m p y t h o n m a n a g e . p y c m s - - s e t t i n g s = a w s \ g i t _ e x p o r t e d X / D e m o X / D e m o _ C o u r s e \ g i t @ g i t h u b . c o m : c a r s o n g e e / e d x - d e m o - c o u r s e . g i t Options username (for commit authorship) repo_dir (specify location of local repo location) 19 / 30
s u - e d x a p p - s / b i n / b a s h . e d x a p p _ e n v p i p i n s t a l l g i t r e l o a d g i t r e l o a d Install for realsies with Ansible: - h o s t s : a l l s u d o : T r u e v a r s : C O M M O N _ E N A B L E _ B A S I C _ A U T H : T r u e r o l e s : - g i t r e l o a d - r o l e : n g i n x n g i n x _ s i t e s : - g i t r e l o a d 23 / 30
o c a t i o n ~ ^ / s t a t i c / ( ? P < f i l e > . * ) { r o o t { { e d x a p p _ d a t a _ d i r } } ; t r y _ f i l e s / s t a t i c f i l e s / $ f i l e / c o u r s e _ s t a t i c / $ f i l e = 4 0 4 ; Changes to: l o c a t i o n ~ / s t a t i c / ( ( ? P < d i r > [ ^ / ] + ) / ( ? P < f i l e > . * ) | ( ? P < r f i l e > [ \ w \ d \ - . ] + ) ) { r o o t { { e d x a p p _ a p p _ d i r } } ; t r y _ f i l e s / s t a t i c f i l e s / $ d i r / $ f i l e / c o u r s e _ s t a t i c / $ d i r / s t a t i c / $ f i l e / s t a t i c f i l e s / $ r f i l e = 4 0 4 ; 26 / 30