1.2 KiB
1.2 KiB
IMPORTANT: Create .env File
Before deploying to Gitea package registry, you need to manually create a .env file in the project root.
Quick Setup
- Create a new file named
.envin the project root directory - Add your Gitea personal access token:
PUBLISH_TOKEN=your_actual_token_here
How to Get Your Token
- Go to https://brokkr.robotico.dev/
- Log in to your account
- Navigate to: User Settings → Applications
- Click "Generate New Token"
- Give it a name (e.g., "dalex-proto-deploy")
- Select permissions: write:package
- Click "Generate Token"
- Copy the token and paste it in your
.envfile
Important Notes
- ⚠️ Never commit the
.envfile to version control! - ✅ The
.envfile is already in.gitignore - 📝 A template is provided in
.env.example - 🔒 Keep your token secure and private
Testing Your Setup
After creating the .env file and installing Python dependencies, you can deploy with:
# Install dependencies first (one time only)
pip install -r requirements.txt
# Run deployment
python deploy.py
Or if Python 3 is not your default:
pip3 install -r requirements.txt
python3 deploy.py
The script will automatically load the token from your .env file.