Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,497
Community Members
 
Community Events
184
Community Groups

Bitbucket Pipelines and Magento 2 deployment

Hi all,

we are running Magento 2 on an AWS Infrastructure (Single EC2 instance, Elastic Search Serves, DB Service).

We have a Prod and a seperate Stage environment up and running.

Right now our deployment is quite manual process 

- Pushe code to repo, create PR to stage branch

- Connect to Stage isntance via SSH, git pull stage branch, execute magento commands like reindex, restart etc.

- Test

- PR to master branch and same as above (Connect to instance, pull master brnach, execute commands)

 

I would like to improve this by using a more automated process with for example BitBucket pipelines. So far I did understand that I could run SCP to transfer my code to my environments but how to execute the update commands on each server or update db for example?

And also, how can I have different config files per environment? Right now we just have the config files on gitignore and do not have them on version control and manage them manually on the server.

 

I hope you can give me an insight where to start and how all this could look like.

Right now I am lost and dont understand how to improve this and where to start how the final picture could look like.

Thanks in advance!

2 comments

I have a tool to improve the deploy process, you are going to have the deploy of static files and DI in your server using a parallel folder when the entire deploy finished it's going to replace the symlink of the production store folder to the new one avoiding downtime and consuming less time in your pipelines.

https://github.com/rafaelstz/deployer-magento2

@Christian Mahlich What solution did you end up with?

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events