Manual Installation
- git ( https://git-scm.com )
- composer ( https://getcomposer.org )
- PHP ≥ 8.0.2
- MySQL, Postgres, SQLite or SQL Server (currently only MySQL and PostgreSQL and SQLite were tested)
git clone https://github.com/fr0tt/benotes
download files version-controlled
composer install
install dependencies accordingly to your php version
cp .env.example .env
copy configuration file
- create a database
- also edit
DB_DATABASE
,DB_USERNAME
andDB_PASSWORD
in.env
file accordingly. If you use something else than MySQL you need to adjustDB_CONNECTION
and most likelyDB_PORT
as well.DATABASE_URL
is also supported if you want to you use that instead.in order to be able to connect to your database
php artisan install
amongst other: create database tables and fill them. Type yes if asked
ln -sfn ../storage/app/public/ public/storage
create symlink for storage
chown -R :www-data storage && chmod -R 774 storage
make storage directory writable for webserver if your webserver runs as user www-data
- if you wish to use it on a production server change in your
.env
fileAPP_ENV
fromlocal
toproduction
- configure your webserver to point to the
public
directory or use for testing purposesphp artisan serve
git pull
upgrade files
composer install
upgrade dependencies
php artisan migrate
upgrade database schemas
php artisan cache:clear
clear cache