Splitting my app between two servers

Posted 2 weeks ago by ChrisF79

I have a real estate website and behind the scenes, the app is going out and downloading every picture for each listing, resizing to multiple sizes and uploading to S3 for storage. There are other CPU intensive tasks as well but that's the big one. It is really slowing my site down so I want to move the database and tasks to a different VPS. My question then is... Can I just git clone my site on the new server and then:

  1. Stop the cron on the first server and start it on the second
  2. Edit my .env to put the IP of the new server as the database host

Anything else? I'm sure there's something I'm missing that will mess something up. Any insight on what to expect or if I'm thinking correctly is highly appreciated!

Please sign in or create an account to participate in this conversation.