Moving Site To A Different Server - Process?

I have been developing a site locally with yii. I want to move it to a hosted server. My question is, can I just copy the protected and framework directories in totality to the new server (along with the index.php file). Or should I install yii and create the skeleton app like I did locally and then copy my custom classes and files only? Just curious on what people normally do.

Just copy and verify yii’s requirements.