Laravel application CI with Docker & Gitlab [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I tried to optimize a workflow for a new laravel application and i want try docker and gitlab-ci
But I'm blow my mind how manage properly.
This is how i think manage my application.
Each commit on master build will run a dind gitlab runner.
Will run docker-compose-test.yml for check regression
If test success, will build a new image and push in private registry
Run a script for getting new image of the app in production server (througth ssh but it's the same server)
But it's con :
DockerFile of app1 is a pure application code container, bad idea. But if i want run app1 ten time i will have 10 ngxin service (1/container) ?
How did you manage this ?

Related

How to run my node app alongside my php application [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
I've been playing around with nginx and reverse proxy's to try figure out how to run my nodejs app alongside my php application. The node app is just a simple socket io chat app but i'd like it to run on chat.mydomain.com. Would someone be able to guide me in the right direction?
Thanks
You are looking for NGINX server blocks.
You can create one proxy for your php app on yourdomain.com and another one for chat.yourdomain.com which points to your node app.

How to remotely update Symfony FW applications? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have a reseller hosting and I create hosting space for my customers. All hosting includes the same PHP applications written in Symfony FW.
Everything is good so far, but there is a point where I get stuck.
How to remotely update?
Is there a bundle or method for this action? If yes, what is it?
are you want to update Symfony frameworks remotely?
if you like pull-based strategy so you can create an endpoint for yourself and return versioning as a result and set a crontab inside of your hostings to call that endpoint and check if the version has been changed so run composer update Symfony/* in that directory.. or for a push-based strategy you can add endpoints in your Symfony hosting app and call it from outside.

Connecting PHP to React [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I've been learning how to use React and I already know substantial PHP. I know that I can use PHP with React since React is only the view in MVC but how do I use PHP with react locally. I have a lamp server running on my Linux machine I want to be able to run it as a backend. Like, let's say I want to make a login screen how do I connect it up. I make the front end in React and the backend in PHP. Do I have to use CORS I'd rather not since, in the end, it's going to be running on the same server.
You don't need CORS, it seems you are looking for proxy.
Just set your proxy to the listening port of your LAMP API server and then simply use fetch with absolute path from your React app.
Let's say your LAPM server is listening on port 23000
"proxy": "http://localhost:23000",
in package.json file of your React app, then
fetch("/my/api")
will call http://localhost:23000/my/api.

Is it possible to convert MySQL to AWS(Amazon web services) later? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm creating the web application using(PHP) CodeIgniter framework with MySQL database. Later I want to replace MySQL to AWS(Amazon web services).
Is it possible? What are the challenges to face here?
I need your inputs folks!!!
If possible, Guide me with some examples.
I think you are talking about Amazon RDS. It is pretty simple to migrate.
Step 1: Backup from MySQL
Step 2: Export to your Amazon RDS instance, you can use MySQL Workbench for this
Step 3: Configure your CodeIgniter database.php file to use the Amazon RDS.
You also ahve steps to create the database and all on AWS RDS, but thats all pretty self explained.

How to config continous deployment from BamBoo to CloudControl [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm configuring my project so that after building and testing phase, the project will be automatically deployed to CloudControl.
However, I'm struggling with the configuration
Since my web app written in php so I have to choose SSH as deployment method.
The following is my configuration (it doesn't work), host/port are getting by running "bin/ip addr" in the remote server
Host: 10.36.49.48
Port: 26
SSH command: cctrlapp ssh://myapp#cloudcontrolled.com/repository.git push
How can I fix this problem
You can push your code by either running
cctrlapp myapp/mydeployment push
or
git add remote cctrl ssh://myapp#cloudcontrolled.com/repository.git
git push cctrl mydeployment
The deploy itself (which is seperate from pushing the code) is done by
cctrlapp myapp/mydeployment deploy

Categories