2020-01-02 16:28:43 -07:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2020-05-07 11:07:33 -06:00
|
|
|
# already start rust build in the background
|
|
|
|
pushd ../../server/ || exit
|
|
|
|
cargo build &
|
|
|
|
popd || exit
|
|
|
|
|
2020-04-13 07:06:41 -06:00
|
|
|
if [ "$1" = "-yarn" ]; then
|
|
|
|
pushd ../../ui/ || exit
|
2020-04-15 12:06:17 -06:00
|
|
|
yarn
|
2020-04-13 07:06:41 -06:00
|
|
|
yarn build
|
|
|
|
popd || exit
|
|
|
|
fi
|
2020-01-02 16:28:43 -07:00
|
|
|
|
2020-05-07 11:07:33 -06:00
|
|
|
# wait for rust build to finish
|
2020-01-02 16:28:43 -07:00
|
|
|
pushd ../../server/ || exit
|
|
|
|
cargo build
|
|
|
|
popd || exit
|
|
|
|
|
2020-04-24 10:30:31 -06:00
|
|
|
sudo docker build ../../ --file Dockerfile -t lemmy-federation:latest
|
2020-01-02 16:28:43 -07:00
|
|
|
|
2020-04-15 12:06:17 -06:00
|
|
|
sudo docker-compose up
|