chore: Codespace Improvements (#4867)

- switch to ubuntu base image
- use rbenv to manage ruby 
- add gh to base image
This commit is contained in:
Sojan Jose
2022-06-17 03:07:07 +05:30
committed by GitHub
parent 205d42e978
commit db86263353
4 changed files with 48 additions and 15 deletions

View File

@@ -6,3 +6,8 @@ sed -i -e "/FRONTEND_URL/ s/=.*/=https:\/\/$CODESPACE_NAME-3000.githubpreview.de
sed -i -e "/WEBPACKER_DEV_SERVER_PUBLIC/ s/=.*/=https:\/\/$CODESPACE_NAME-3035.githubpreview.dev/" .env
# uncomment the webpacker env variable
sed -i -e '/WEBPACKER_DEV_SERVER_PUBLIC/s/^# //' .env
# fix the error with webpacker
echo 'export NODE_OPTIONS=--openssl-legacy-provider' >> ~/.bashrc
# codespaces make the ports public
gh codespace ports visibility 3000:public 3035:public 8025:public -c $CODESPACE_NAME