Quick Setup
Create apsys alias to start the application in background mode with one command.
Add alias to shell configuration
Open your shell configuration file and add the alias.
Replace
/path/to/psys with the actual absolute path to your psys project directory.Shell Configuration Files
Choose the correct configuration file based on your shell:| Shell | Configuration File | How to Check |
|---|---|---|
| Zsh | ~/.zshrc | echo $SHELL returns /bin/zsh or /usr/bin/zsh |
| Bash | ~/.bashrc | echo $SHELL returns /bin/bash or /usr/bin/bash |
Example: Finding Your Project Path
To get the absolute path for the alias:Advanced Aliases
You can create additional aliases for different operations:The
open command works on macOS. On Linux, use xdg-open instead.Verifying the Alias
After setting up your alias:Verify it's running
Open http://localhost:30999 or check with:
Troubleshooting
Alias not found after adding to config file
Alias not found after adding to config file
Make sure you reloaded the shell configuration:Or open a new terminal window.
Command not found: npm
Command not found: npm
Ensure Node.js and npm are installed and in your PATH:
Build not found when running alias
Build not found when running alias
Run the build command first:The production build must exist before using
npm run start:bg.Port 30999 already in use
Port 30999 already in use
Another instance might be running. Stop it first:Or use
lsof -ti:30999 | xargs kill to kill the process using that port.