- Have a React app in a public GitHub repo
- In a pinch, use
create_react_app
to bootstrap a project
- In a pinch, use
- In the app folder,
npm install gh-pages --save-dev
- Add
"homepage": "http://<username>.github.io/<repo>"
as the first item inpackage.json
- Add the following to the
scripts
section inpackage.json
-
"predeploy": "npm run build", "deploy": "gh-pages -d build"
-
npm run deploy
- See dark blue.
code .
in the directory you're working in- Confirm in lower-left corner that you're on the intended distro
- Avoid using a folder mounted on /mnt/c/ as that can lead to lag
- Disable QuickEdit mode in Options to avoid having to hit and having a suspended program
- In VSCode, turn off file polling for
.git
files which causes an 'Unable to write index file' error on Github desktop. In Open Remote Settings >
"remote.WSL.fileWatcher.polling": true,
"files.watcherExclude": {
"**/.git/**": true
}
- Update to WSL 2 by following these instructions. If you cannot
sudo apt-get update
, these tips will help. - If the vim plugin messes with the built-in Ctrl+F search functionality, set
"vim.handleKeys": { "<C-f>": false }
in settings.
- Under Extensions, install the Python extension and reload VSCode
- Ctrl + Shift + P to
- select the Python interpreter
- configure Python testing
- run test discovery (can be toggled to on-save)
- Follow the official Rails guide. If you get an error during the
gem install rails
phase, this post helped, although I used a later version of Ruby (3.0.0).