cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
13.79k stars 1.55k forks source link

Is branch 3.x ready to be used? #4404

Closed erfantkerfan closed 1 week ago

erfantkerfan commented 1 week ago

I a DevOps eng. who is trying to Dockerize your application but it like 3.x branch is not ready to be used, am I correct? For example after the setup the / route gives me 404 and also I'm getting error like this when I try to run migration. My background in Laravel development can help you Dockerize the project easier. I'm making a PR also you can contact me on linkedin (in my github bio).

In Connection.php line 829:

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'settings' already exists (Connection: mysql, SQL: create table `settings` (`id` bigint unsigned not null auto_increment primary key, `group`   
  varchar(255) not null, `name` varchar(255) not null, `locked` tinyint(1) not null default '0', `payload` json not null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8m  
  b4 collate 'utf8mb4_unicode_ci')                                                                                                                                                                               

In Connection.php line 587:

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'settings' already exists  
erfantkerfan commented 1 week ago

@jbrooksuk

florianbussmann commented 1 week ago

Hi @erfantkerfan , did you see there is an old project for Docker you can use as reference which works up to latest stable 2.4? https://github.com/cachethq/Docker

I tried to bring up the 3.x branch using this and found that the base route changed to /status which is why you get an 404 error on the base path. You can also change it to the root using environment variable CACHET_PATH=/

However I also face some issues after deployment, but the migration path works for me. Not sure what the difference here is comparing to your PR - is your docker volume for the database really clean on startup?

steffjenl commented 1 week ago

https://github.com/steffjenl/Docker/tree/feature/cachet-3.x

I have created a Docker version for 2.4 and 3.x

For the 2.4 I have a PR open in the repo Docker

With deployment to Docker Hub and GitHub Docker

You can set the env parm to CACHET_PATH="/" to set the path to the root directory.

jbrooksuk commented 1 week ago

3.x is not ready for production use yet. It "works", but it's far from feature complete.