Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How to use Codespace/Devcontainer

  1. On branch codespace, click code and then click “new with options” (don’t use branch develop because it’s protected branch)

  1. Click create codespace and make sure the ‘dev container configuration’ have HH-SERVER
  2. Wait for the codespace server to be created

  1. After the codespace server has been created it will ask mysql password to make sure the mysql container successfully ran.
  2. check if the mysql container has been ran
    docker ps
    
  3. In case the mysql container failed to run
    ./install.sh
    and then it will ran container mysql on port 3306 redis on 6379 and memcached on 11211
    
  4. Upload the dump file and restore the mysql database
    mysql -h 127.0.0.1 -u root -p <database_name> < dump.sql
    
  5. You can also go to another branch using git checkout
  6. Ran the rails server, sidekiq and webdev server
bundle exec rails s puma
bundle exec sidekiq
./bin/webpack-dev-server