Best practice of SC production environment
Good evening guys,
I’m somehow new yet to SC and want to know the best practice of the production environment, I understand once development is finished, we should deploy it, and hence that package must be moved to the live server…
Now, about the production package exported from SC, either unzip that zip file or to deal with the folder that was uploaded using ftp…
Now, once you launch the app for the first time, in the live server, it directs you to the production environment of the application, which is protected, to arrange the files and creates the connection of the db on the live server…
Until here is fine>>>>>>>>>>>
1- I see that prod folder is almost 40 mb! which has a lot of not needed stuff for this specific application right?
2- Why the prod package should be always there even after the app is working on the online server?
3- What is the need for the protected area that changes the connection, after the application is launched and working fine?
4- Can i delete it? anybody can see it if navigate to application/_lib/prod - i don’t want them to see the login page, they will be confused then
5- how i can remove the accessibility of this production environment of the app after finishing and publishing it?
6- can i just deploy to xampp/wampp server on localhost then move the files manually along with the manually-exported mysql sql file?
7- in this case, dont we need the production environment again? were to change the connection manually to the new db info on the live server?
8 - in short, production environment, with each application should be on the live server? why? it is added size i think, can i get rid of it? specially the
place that login to the production environment for reach application, how i can protect it or hide it or remove it?
9 - in case of new version of the app will be there, then it will be totally as new deployment on the same server, but, using the same database right? so we will need again the production environment of the x-version of the application? once more? why?
10- overall, i don’t really understand this production thing and what is the best practice of it? i want to make the files as minimum as possible and decrease the need of uploading about 50mb for a single application, as well as, make sure nobody can access the login area of the production server for security reason? and not to see it at all!
How are you doing with this issues guys? and what is the advisable workflow you think?
Thanks and regards,
Mike