Closed rpungello closed 2 years ago
I also have this issue after instaling with docker
same issue
Hi @eugenewere
Disclaimer: I am still very new to web development (<1 year), so my approach is not going to make sense to most.
In response to your question over on the pull request I mentioned this on...
When I got it working it was through a great amount of trial and error, so after seeing your request for the steps I went back and started fresh to try to figure out the exact order but honestly all I did was manage it slightly faster while still being unsure exactly what the correct order of things is. I can tell you the overall idea that ended up working out.
localhost:8080
and enter your details from the db setup.composer create-project akaunting/akaunting .
php artisan key:generate
composer install
throws flags for the database not yet being set up... 😒 php -S 0.0.0.0:8000
to start the php server so I could see something in my browser and/or communicate with the db. The port is forwarded to localhost:8000 on your local machine.npm install && npm run dev
followed but the db set up command below (you'll need to edit the details) will work.
php artisan install --db-name=<your db name> --db-username=<your user name> --db-password=<your password> --admin-email="admin@company.com" --admin-password="123456" --db-host=<db container name>
php artisan sample-data:seed
However, I was unsuccessful somewhere in this and had to use individual commands from app/Console/Comands/Install.php
, namely these three;
$this->line('Creating company');
Installer::createCompany($this->company_name, $this->company_email, $this->locale);
$this->line('Creating admin');
Installer::createUser($this->admin_email, $this->admin_password, $this->locale);
$this->line('Applying the final touches');
Installer::finalTouches();
$this->some_detail
partsAs you can tell, there was a lot of "hit and hope" and "scrap it and start from scratch" going on in this but I did end up with a working web app that I could access in my browser and it all seemed to be working nicely.
My apologies for not having any clear set of instructions. I'm definitely open to suggestions! 😅
Same issue also, I tried multiple "from scratch" installations with :
I always get the same result, a 404 page on HOST_IP:8080/ and on HOST_IP:8080/auth/login
In logs :
akaunting | Setting locale en-US
akaunting | Creating database tables
akaunting | Connecting to database akaunting@akaunting-db:3306
akaunting | Creating company
akaunting | Creating admin
akaunting | Applying the final touches
akaunting | [09-Mar-2022 14:26:15] NOTICE: fpm is running, pid 1
akaunting | [09-Mar-2022 14:26:15] NOTICE: ready to handle connections
akaunting | 172.22.0.4 - 09/Mar/2022:14:29:38 +0000 "GET /index.php" 404
Database is initialized with 52 tables.
Hi,
Can't reproduce the issue, make sure to set up APP_URL
correctly in run.env
.
Example:
APP_URL=http://localhost:8080
Regards
Had same issue. All you have to do is correctly set APP_URL
in env/run.env
(including the port)!
I gave up on it and ended up like this :))
I'm trying to follow the readme file in this repo, but something isn't working right. I did all this
However, when I connect to my Docker host using port 8080, I get an Akaunting error page 404