Deploy destinations
The screeps.json file is a JSON configuration file separated into multiple deploy destinations. We've given you four primary destinations by default.
See here for steps to generate your API token.
1
{
2
// Used for deploying to the main world
3
"main": {
4
"token": "YOUR_TOKEN",
5
"protocol": "https",
6
"hostname": "screeps.com",
7
"port": 443,
8
"path": "/",
9
"branch": "main"
10
},
11
// Used for deploying to Simulation mode
12
"sim": {
13
"token": "YOUR_TOKEN",
14
"protocol": "https",
15
"hostname": "screeps.com",
16
"port": 443,
17
"path": "/",
18
"branch": "sim"
19
},
20
// Used for deploying to Seasonal Event server
21
"season": {
22
"token": "YOUR_TOKEN",
23
"protocol": "https",
24
"hostname": "screeps.com",
25
"port": 443,
26
"path": "/season",
27
"branch": "main"
28
},
29
// Used for deploying to a private server
30
"pserver": {
31
"token": "YOUR_TOKEN",
32
"protocol": "http",
33
"hostname": "1.2.3.4",
34
"port": 21025,
35
"path": "/",
36
"branch": "main"
37
}
38
}
Copied!
You can make as many separate destinations as you want. Just make a copy of any config object and perform the necessary changes. Once you're done, use the --environment DEST:<dest> argument on the rollup command to specify which environment to upload to.
1
rollup -c --environment DEST:main
Copied!
Omitting the destination will perform a dry run, which will compile and bundle the code without uploading it.
Copy link