You must use an AIO egg (was not tested on other eggs)
You also need a PostgreSQL database.
To download and setup zipline run those commands in order
git clone https://github.com/diced/zipline # clone zipline
cd zipline # enter the cloned directory
mkdir /home/container/tmp # make a temporary folder
export TMPDIR=/home/container/tmp # set temp dir to the folder you just made
yarn install # install the required package
# setup your .env.local file
yarn build # build zipline
yarn start # start zipline
Your .env.local
file should look like this
you must change those settings
CORE_SECRET
: any hard to guess stringCORE_DATABASE_URL
: your PostgreSQL database connection stringCORE_PORT
: your server's port
If you get an error about plugins not starting in time, try to run again yarn start
, if on this second start you get an error about migrations,
copy all the CORE_xxx
variables in a file named .env
removing the CORE_
prefix, for example CORE_SECRET
=> SECRET
then run:
npx prisma migrate reset
npx prisma migrate dev
yarn start
If you use DBH i made a video where I set it up (it'd work the same way on any pterodactyl server with AIO egg, just use your way to create the server)