This redesign of my website would not be possible without the incredible work by Anders Evenrud on OS.js. As you can see in the majority of the files, this monorepo is a modified amalgamation of the OS.js source code.
- Run the following commands and update the generated files with your own information:
cp apps/old-site/.env.template apps/old-site/.env
cp apps/terminal/scripts/.env.template apps/terminal/scripts/.env
cp website/src/client/.env.template website/src/client/.env
cp website/src/server/auth/template.env.json website/src/server/auth/.env.json
bash ./scripts/setup.sh
bash ./scripts/deploy.sh
- Can use
--no-reset
for local deployment testing, so you don't lose your changes
- Can use
- Running
pm2 monit
will allow you to track when the server has finished initializing
For more information, see this guide.
If you encounter the error EADDRINUSE, Address already in use
on Windows, run taskkill /F /IM node.exe
.
To see if the port is already in use on Linux, run netstat -tulpn | grep LISTEN
. If you need to free the port, you can likely run sudo pkill -9 node
. Alternatively, you can run the command sudo fuser -k 8000/tcp
until there is no output, then the port will be guaranteed to be free.
To see if your process is still runninng, run pm2 list
.
To monitor the logs from your process, run pm2 monit
.
To run GitHub Actions locally, do the following:
curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
sudo ./bin/act -s GITHUB_TOKEN=ENTER_YOUR_PAT_HERE
- Select "Medium" as the image size
winget install nektos.act
- Open a new terminal
- Ensure that Docker Desktop is running
docker pull catthehacker/ubuntu:act-latest
act --pull=false -s GITHUB_TOKEN=ENTER_YOUR_PAT_HERE
- Select "Medium" as the image size
To publish changes to MeeseOS, use the following command:
rush --debug publish --publish --include-all --set-access-level public
You can specify which registry you want to publish by adding one of the following flags:
- GitHub Packages:
--registry https://npm.pkg.github.com
- NPM:
--registry https://registry.npmjs.org
If you want to do a dry run first, run rush publish --include-all
.
- Caching for "rush-project.json"
- "Project does not have a rush-project.json configuration file, or one provided by a rig, so it does not support caching."
- "rush build --verbose"