- License information can be found in the LICENSE.txt file within the project.
- Biblica OpenVPN required
- Private IP: 10.20.2.4
- Service Port: 9875
- Username: Administrator
- EC2 instance SSH Keypair: biblica-remote-dev-1-kp
- ASP.NET 3.0
To build the Typesetting Preview Service, one will need the following:
- Visual Studio 2019 and extensions
- ASP.NET and web development
- .NET desktop development
- Universal Windows Platform development
These are settings related to how the typesetting preview service behaves and for how it communicates with InDesign server. Location: Properties > serviceSettings.json
Parameter | Description | Example |
---|---|---|
InDesignServerUri | The URL of InDesign Server servicce. | http://10.20.2.4:9876/service |
MaxConcurrentServerRequests | The maximum number of requests that can be served at the same time. | 4 |
PreviewScriptPath | The path of the InDesign scripts located on the InDesign server. | C:\Work\ Scripts\TypesettingPreviewRoman.jsx |
PreviewOutputDirectory | The location to store the generated previews. | C:\Work\Output |
MaxPreviewAgeInSec | The age in seconds in which to keep previews around. | 86400 |
These are development related settings. Location: appsettings.json
- Start the EC2 intance
biblica-toolbox-indesign-server
Note: It'll take roughly a minute to startup - RDP into the instance
- Run the "Relicense InDesign Server" shortcut located on the desktop Note: This is due to InDesign forgetting it's licensed upon restarting.
There's a REST API for requesting the generation, checking the status of, and download of typesetting previews.
For examples, see the postman collection Resources/Typesetting Preview Tool.postman_collection.json
.
Operation | VERB | URL | Payload |
---|---|---|---|
Request a typesetting preview. | POST | /api/PreviewJobs |
|
Get information about a typesetting preview job. | GET | /api/PreviewJobs/{preview-job-guid} | |
Delete a typesetting preview job. | DELETE | /api/PreviewJobs/{preview-job-guid} | |
Download a typesetting preview. | GET | /api/PreviewFile/{preview-job-guid} |
Perform the Visual Studio Build Operations
On the build machine
- Right-click the visual studio project
tools-tpt-transformation-service
- Click "publish"
- First time publishing will require a publish profile be created
- Publish Target: Folder
- (Under advanced)
- Configuration: Release
- Target Framework: netcoreapp3.0
- Deployment Mode: Framework -Dependent
- Target Runtime: Portable
- Folder or File share: "choose target location"
- Click publsh
- Copy
<project>/properties
into the publish folder - Zip up the publish folder
- Using RDP, copy the publish zip file to the Typesetting Preview server
On the build machine:
- Extract the zip contents to a temp location
- Open "Internet Information Services (IIS) Manager"
- Navigate to EC2AMAZ-H25RBUO > Sites > "TPT Service"
- Remove TPT Service
- Remove the contents of C:\Work\Service
- Copy the publish folder's contents to C:\Work\Service
- In ISS: 6. Right click "EC2AMAZ-H25RBUO > Sites" and click "Add Website" 7. For the settings: 8. Site name: TPT Service 9. Application Pool: TPTPool 10. Physical Path: C:\Work\Service 11. IP Address: All Unassigned 12. Port: 9875 13. Click OK
Logs for the Typesetting Preview Tool and InDesign are located in the Windows Event Viewer.
Navigate to "Event View" > "Windows Logs" > "Application.
When a persisted model changes, use the Entity Framework Core Tools to create migrations and upate the database snapshot.
E.g. dotnet ef migrations add <migration name>
to create a migration, or dotnet ef database drop && dotnet ef database update
to use a fresh local database.