Skip to content

Instantly share code, notes, and snippets.

@d3cline
Last active January 6, 2023 19:02
Show Gist options
  • Save d3cline/8d60eab4ec68096bed8e0b381011b0f3 to your computer and use it in GitHub Desktop.
Save d3cline/8d60eab4ec68096bed8e0b381011b0f3 to your computer and use it in GitHub Desktop.
How to build BookStack on Opalstack.
Prefece: BookStack is seemingly a normal laravel app.
This means you need to check it out to a directory someplace,
install its deps, config the DB, and point a symlink apache app to the 'public' sub directory.
Create a new OSUser for this app to live in, it makes deployment a little easier.
Shell commands,
mkdir ~/src
cd ~/src
git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch
wget https://getcomposer.org/installer
php81 installer
cd BookStack/
php81 ../composer.phar install --no-dev
cp .env.example .env
php81 artisan key:generate
# At this step edit the .env file and configure the DB settings.
# also edit the domain setting
vim .env
# once you save and exit vim then you can run migrate,
php81 artisan migrate
# at this step you can create a new 'Symbolic link, Apache/PHP-FPM' app
# the path will be /home/NEWOSUSER/src/BookStack/public
@onecrayon
Copy link

Trailing slash on the symlink path breaks the app, but otherwise these instructions worked great for me!

@d3cline
Copy link
Author

d3cline commented Jan 6, 2023

👍 fixed thanks

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