mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 00:01:25 +00:00
Removing binstall.
This commit is contained in:
parent
6aafc2066c
commit
5dad74b732
1 changed files with 3 additions and 8 deletions
|
@ -32,11 +32,8 @@ variables:
|
||||||
- apt update && apt install -y lsb-release build-essential
|
- apt update && apt install -y lsb-release build-essential
|
||||||
- sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
- sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
||||||
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||||
- apt update && apt install -y postgresql-client-16 libsqlite3-dev default-libmysqlclient-dev libpq-dev
|
- apt update && apt install -y postgresql-client-16
|
||||||
- ls -al /usr/lib/
|
- cargo install diesel_cli --no-default-features --features postgres
|
||||||
# - ls -al /usr/local/mysql/lib/
|
|
||||||
- export LD_LIBRARY_PATH=/usr/lib
|
|
||||||
- cargo binstall -y diesel_cli
|
|
||||||
- export PATH="$CARGO_HOME/bin:$PATH"
|
- export PATH="$CARGO_HOME/bin:$PATH"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -55,7 +52,6 @@ steps:
|
||||||
CARGO_HOME: .cargo_home
|
CARGO_HOME: .cargo_home
|
||||||
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
commands:
|
commands:
|
||||||
- <<: *install_binstall
|
|
||||||
- <<: *install_diesel_cli
|
- <<: *install_diesel_cli
|
||||||
- diesel migration run
|
- diesel migration run
|
||||||
- diesel print-schema --config-file=diesel.toml > tmp.schema
|
- diesel print-schema --config-file=diesel.toml > tmp.schema
|
||||||
|
@ -202,9 +198,8 @@ steps:
|
||||||
PGHOST: database
|
PGHOST: database
|
||||||
PGDATABASE: lemmy
|
PGDATABASE: lemmy
|
||||||
commands:
|
commands:
|
||||||
- <<: *install_binstall
|
|
||||||
# Install diesel_cli
|
# Install diesel_cli
|
||||||
- cargo binstall -y diesel_cli -- --no-default-features --features postgres
|
- <<: *install_diesel_cli
|
||||||
# Run all migrations
|
# Run all migrations
|
||||||
- diesel migration run
|
- diesel migration run
|
||||||
# Dump schema to before.sqldump (PostgreSQL apt repo is used to prevent pg_dump version mismatch error)
|
# Dump schema to before.sqldump (PostgreSQL apt repo is used to prevent pg_dump version mismatch error)
|
||||||
|
|
Loading…
Reference in a new issue