Skip to content

Instantly share code, notes, and snippets.

@Stef-00012
Last active April 2, 2024 13:09
Show Gist options
  • Save Stef-00012/b517447f97eea9c119cfa0cca1cc6ea8 to your computer and use it in GitHub Desktop.
Save Stef-00012/b517447f97eea9c119cfa0cca1cc6ea8 to your computer and use it in GitHub Desktop.

You must use an AIO egg (was not tested on other eggs)

Setup

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

.env.local

Your .env.local file should look like this

you must change those settings

  • CORE_SECRET: any hard to guess string
  • CORE_DATABASE_URL: your PostgreSQL database connection string
  • CORE_PORT: your server's port

Troubleshooting

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)

Automatically upload screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment