-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Cannot build Codelgniter4 with Vagrant #2453
Comments
hi @charlesng could i take this bug? |
I spent few days but I still not able to setup it with vagrant yet. Thank you for picking up |
@rrcfesc Hopefully you can get this one working. I'd love to see this work smoothly. If you had time to add some docs for it, also, that would be great. |
i can reproduce the issue over linux, so im working in the fix |
Im still working in the issue, apparently the vagrantfile is correct, but for any reason when the image start, the service is off, @charlesng you can wait until my fix or could you run the following commands: |
@rrcfesc Thank you for working the issue. I run the cmd and now I can access the codelgniter 4 from my host machine. But now I got the sql connection issue on the application after I access lcoalhost:8085. Is it also related to this issue? |
@charlesng i dont think so about that is related with the issue, the vagrantfile only open the ports 8080, 8081, 8082, could you share the VagrantFile please. |
@lonnieezell almost done the fix, do you have in mind a place for the docs? or must be in the PR? |
i think is related with the issue |
@rrcfesc Okay, I have found something might be helpful. On the file Also , currently when I changed the environment setting then I need to run the cmd |
@rrcfesc Thank you for your work on this! Were you able to solve it? If the updated docs differ from what is current (https://codeigniter4.github.io/CodeIgniter4/installation/running.html#hosting-with-vagrant) then a PR to update the User Guide would be great. The file in question is <user_guide_src/source/installation/running.rst>. I would be glad to help with this, please just let me know where it is at. |
Container versions of the app need to be moved out of the framework and into separate projects. If anyone has work on Vagrant and wants to take charge of |
Does anyone use Vagrant? |
I'm sure someone does, but no one has been concerned enough in the last year+ to respond. Maybe we copy it over to another repo or something? Doesn't seem to really be needed in core. |
We've been adding container templates to DevKit - I think that would be a fine place to out this. |
But it seems it does not work. See codeigniter4/CodeIgniter4#2453
The DevKit already has Vagrantfile.dist. |
The Vagrantfile.dist was moved to the devkit. |
Direction
Not possible to use
vagrant up
to start Codelgniter4Describe the bug
I tried to git glone this project and modified the 'VagrantFile.dist' to 'VagrantFile'. And then run
vagrant up
. The following error is showedTo fix this, modify your current project's Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:
config.vm.network :forwarded_port, guest: 80, host: 1234
Then I tried to change the port from 8080 to 8085 and run again. Then the vagrant is built this time. And I tried to access 'http://localhost:8085' on browser but no response.
I have tried to uncomment the mysql setting on 'VagrantFile' and I can access it on my host machine after Vagrant build.
CodeIgniter 4 version
master branch
Expected behavior, and steps to reproduce if appropriate
Build Codelgniter4 and access it with http://localhost:8080 or http://localhost:8085
Context
The text was updated successfully, but these errors were encountered: