Quick Setup
Create apsys alias to start the application in background mode with one command.
1
Build the application
Run the build command at least once:
2
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.3
Reload shell configuration
Apply the changes by reloading your shell configuration:
4
Run the alias
Now you can start psys from anywhere:The app starts in the background on port 30999.
Shell Configuration Files
Choose the correct configuration file based on your shell:Example: Finding Your Project Path
To get the absolute path for the alias:1
Navigate to the project
2
Get the full path
/home/username/projects/psys3
Use in 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:1
Check the alias definition
2
Test the alias
3
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.