Admired Leadership is a LMS, where users are able to purchase it's content initially through full purchase then can choose to subscribe annually. Breakdown of offered content:
- Modules are made up of selected Behaviors.
- Each Behavior consists of a video, audio, behavior map, examples, discussion questions, and exercises.
- RoR — BE & FE
- React — FE
- PSQL — DB
- DigitalOcean — hosting DBs and sites
- Install PostgreSQL App and pgAdmin 4
- In your terminal, run
ssh admired-leadershipto access project's remote server.- If it prompts you to add PW, retrieve it from "sudo password" under Developer fault in 1PW
- If you do not have access, ask another developer to add your SSH key in
~/.ssh/authorized_keys
- To make copy of the latest database from prod, in the server, run
pg_dump postgresql://doadmin:sr2efv5zn3e11rzo@cra-db-1-do-user-6064751-0.db.ondigitalocean.com:25060/defaultdb -f ~/admired_leadership_production_yyyy-mm-dd.sql(populate current date). - If you
lsin the current directory, you should see the new sql file you've created. exitout of server and runrsync admired-leadership:admired_leadership_production_yyyy-mm-dd.sql ~/Downloads/.This will make a copy of the file from the remote server to your~/Downloadsdirectory.- Run PostgreSQL and pgAdmin4 Apps. Retrieve pgAdmin4 PW from 1PW under "pgadmin"
- Create new database in pgAdmin4 and name it "admired_leadership_development".
- Return to terminal and run
psql admired_leadership_development < ~/Downloads/admired_leadership_production_yyyy-mm-dd.sqlThis will restore theadmired_leadership_developmentDB with the sql file we copied from the server.
- Clone project locally, pull latest from master, and run
bundle installandyarn installfrom the root directory. - Run
bin/rails sto start up server. Should now see project running inlocalhost:3000 - In a separate terminal,
open ~/.zshrcand addRetrieve the token from Font Awesome Accounts. Login credentials are in 1PW.export FONT_AWESOME_TOKEN="ENTER HERE" - Ensure that pgAdmin4 is running with the databases accessed (by entering PW) and PostgreSQL is running on port 5432 with
admired_leadership_developmentrunning inside. Make sure the app is running withbin/rails s. To test that the app is running properly, access the console from another terminal by runningbin/rails c. Once inside, runUsers.all[0]. If you get a user data back, then everything is running.
Amy had luck following these commands when having the following error: Error running '__rvm_make -j8':
brew uninstall gnupg gnutls libevent unbound wget
brew uninstall --ignore-dependencies openssl@3
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/opt/homebrew/opt/[email protected] rvm install 3.0.0
brew install gnupg gnutls libevent unbound wget
- Only
mastercan push to prod withbundle exec cap production deploy - Only
env/stagingcan push to staging withbundle exec cap staging deployNOTE: All changes should funnel throughenv/stagingbefore merging intomaster