This tutorial shows how to do a typical deployment in the Scritpcase. The scriptcase contains two models of application deployment:
Typical and Advanced.
If you are unsure of how to deploy to a hosting server, watch this video tutorial about deployment here.
Prerequisites:
This type of deployment is intended for users who want to use the default settings of the production environment (Common Libraries), this configuration is made automatically by Scriptcase. The process is described below:Step 1: Access your project and choose the option "Project -> Deploy", available in the top menu.

After click in Deploy, you have the option to deploy all project applications or choose which will be deployed. In this tutorial we will use the option "All".


Note: Case you choose the option "Select Applications", a screen with all project applications will be displayed so you can choose only those that will be deployed.
Step 2: In the next screen, choose which type of publicacion you want to use, for this examples we will choose the "Advanced".
Step 3: Let's create a deployment template so the settings can be saved and reused whenever wanted.
Step 4: Set the directory structure of the production environment according to the structure of common libraries defined on the production server. Two separate configuration examples are shown.

Example:
Note: It is necessary to create a directory on your production server, to house the entire deployment production environment (Common Libraries), remembering that in the documents directory you must inform the absolute path to the folder. In this example we are using the directory named "producao".
Directory of the Production: Set of libraries and services used by applications published. Set here the path relative to the prod directory, eg: /production/prod or /prod
Note: The Character "/" means that tthe root of the Web server is used for relative paths.Step 5: Set the name of the connection with the database, which will be used in the project after it is published.

Note: This option is recommended as it is the least dependent on other services to be performed. Deployment on a server directory: Deploy the applications in the directory informed. This option should only be used if the deployment is made in the same server where the ScriptCase is installed, otherwise the option will not be valid.



Note: To use this option it is necessary to have a server that has FTP access and a user with write permissions in the same folder.

FTP server: Server which will be used to deploy the project. Insert here the domain of your FTP server.
User: FTP user of the production server, remembering that this user must have write permission in the server folder, otherwise it will not work.
Password: Password of the FTP user.
Directory in the FTP: Directory of the chosen server for deploy the project.
Note: With the advanced deployment, is necessary to download the "Production Environment", which corresponds to all the files responsible for public libraries. If you do not wish to download the Production Environment (Common Libraries) generated by the link after deployment, you can choose to download it here. If you want to deploy the same project again, no need to download the common libraries. This information is not only valid when ordinary libraries have been updated to a new release of ScriptCase.The structure will look like the image below:

Step 2: On the next screen you will have to define a new password to enter the "production environment".
Step 4: In this step we choose the database, the database we use in the application.

Step 5: We will inform the Database Server, in ours as the database is on the same machine as the applications, we can call it through ' localhost ', if the database is on another server it can be called through the machine name or IP number, we will inform also the Login and Password to access the database (if any).
Note: For the example, the MySQL database was used.

Step 6: The last step will be accessing the application in the browser.
