jjdejong / phpip

Patent and other IP rights portfolio manager and docketing system v2
GNU General Public License v3.0
33 stars 17 forks source link

Project Runs with ChatGPT Assistance but Browser Access Fails #134

Closed wangjueszu closed 2 weeks ago

wangjueszu commented 2 weeks ago

I've reached the following step:

root@racknerd:/www/phpip# php artisan serve --port=8000
INFO  Server running on [http://127.0.0.1:8000].  
Press Ctrl+C to stop the server

However, accessing the server via the browser using the server IP and port 8000 yields no response.

I don't have prior experience deploying PHP projects. Below is the deployment process after discussing with ChatGPT:

1、Environment: debian-11.10 [x86_64] 2、Clone Repository:

git clone https://github.com/jjdejong/phpip.git
cd phpip

3、Install Dependencies: composer install 4、Set Up Environment File: cp .env.example .env 5、Generate Application Key: php artisan key:generate 6、Edit Environment Variables: nano .env Modified the following parts:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3307
DB_DATABASE='phpip'
DB_USERNAME='oneapi'
DB_PASSWORD='90****d!!!'
OPS_APP_KEY="90****do!)"
OPS_SECRET="90****do!)"
REDIS_HOST=172.22.0.4
REDIS_PASSWORD=null
REDIS_PORT=6379

7、Run Migrations: php artisan migrate 8、Install Node.js Dependencies: npm install 9、Build Assets: npm run dev 10、Serve Application: php artisan serve --port=8000 Could you please advise if I am missing any steps?

papoteur-mga commented 2 weeks ago

root@racknerd:/www/phpip# php artisan serve --port=8000 INFO Server running on [http://127.0.0.1:8000].
Press Ctrl+C to stop the server



However, accessing the server via the browser using the server IP and port 8000 yields no response.

Hello, You don't indicate that you checked that the firewall is configured to open the port 8000, as you try to access from the external.

Installation is also documented here: https://github.com/jjdejong/phpip/wiki/2.-Installing

jjdejong commented 2 weeks ago

The php artisan serve thing is for development purposes. You're only supposed to use it locally, and you point your browser to http://localhost:8000.

wangjueszu commented 2 weeks ago

I have already deployed the results

thank you verymuch

However, when I create new trademark data, there is a database format error

image