Last active
January 6, 2023 19:02
-
-
Save d3cline/8d60eab4ec68096bed8e0b381011b0f3 to your computer and use it in GitHub Desktop.
How to build BookStack on Opalstack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trailing slash on the symlink path breaks the app, but otherwise these instructions worked great for me!