mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-02 17:30:08 +00:00
24 lines
595 B
Bash
Executable File
24 lines
595 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Build web app
|
|
cd web
|
|
yarn || exit 1
|
|
yarn build || exit 1
|
|
cd ..
|
|
|
|
# Install linux dependencies
|
|
./linuxdeps.sh || exit 1
|
|
|
|
# Install python dependencies in conda environment
|
|
conda env create -f environment.yml || exit 1
|
|
|
|
# Activate conda environment
|
|
conda activate memos || exit 1
|
|
|
|
# Initialize database
|
|
python memos_app.py init || exit 1
|
|
|
|
# Deactivate and exit
|
|
conda deactivate
|
|
echo "Setup complete. Please run 'conda activate memos' to use the environment and then 'python start.py' to start the full app."
|
|
echo "You can also run 'source start.sh' to start the full app in one go." |