This guide provides a step-by-step recipe for launching the Tyk Developer Portal using an RPM package in Red Hat environment (RHEL / CentOS).
NoteThis document is just an example. Customize all fields, including the username, password, root password, database name and more.Be sure to update the connection DSN in the env-file accordingly.
To successfully install the Tyk Developer Portal using RPM, your environment should satisfy the following requirements:
Connectivity to packagecloud.io. If your environment doesn’t have connectivity to packagecloud, you will need to download the portal package and copy it to the target host.
RPM Package Manager should be installed on the host machine.
Download the portal packageTo start with, you need to download the portal package from packagecloud.io. To keep things organized, first create a directory where all installation assets (packages and config files) will be stored:
Install the portal packageOnce the package is downloaded, you need to install using RPM. Execute the below command to so. Once again, ensure to replace portal-1.16.0-1.x86_64.rpm with an actual filename of the package you have downloaded on the previous step.
sudo rpm -i portal-1.16.0-1.x86_64.rpm
Update the configuration file with your licenseBefore starting the portal service, you need to configure the portal. Once the rpm package has been installed, the portal configuration file will be located in /opt/portal/portal.conf.
Initially, the config file is filled with the default values. The minimal configuration change to start the portal is to add the LicenseKey property to the config file.
The below sample configuration will start the portal on portal 3001 with PostgreSQL as a database, no TLS enabled, and all CMS assets (images, theme files, etc.) are stored in the filesystem.
You can, however, customize the provided example and make more suitable for your need using the configuration reference.
Start the portal serviceNow when the portal package is installed and the configuration is updated, it is time to start the portal by executing the following command:
sudo systemctl start portal.service
To check status and log of the portal execute the following command:
systemctl status portal.service
Bootstrap the portalNow the portal is running on port 3001, but it needs to be bootstrapped by providing credentials for the super admin user since it’s the first you are launching it. Follow the bootstrapping section of the documentation to bootstrap the portal via the UI or the admin API.
To successfully install the Tyk Developer Portal using DEB, your environment should satisfy the following requirements:
Connectivity to packagecloud.io. If your environment doesn’t have
connectivity to packagecloud, you will need to download the portal package and copy it to the target host.
Debian Package Manager should be installed on the host machine.
Download the portal packageTo start with, you need to download the portal package from packagecloud.io. To keep things organized, first create a directory where all installation assets (packages and config files) will be stored:
Install the portal packageOnce the package is downloaded, you need to install using DEB. Execute the below command to so. Once again, ensure to replace portal_1.16.0_amd64.deb with an actual filename of the package you have downloaded on the previous step.
sudo dpkg -i portal_1.16.0_amd64.deb
Update the configuration file with your licenseBefore starting the portal service, you need to configure the portal. Once the deb package has been installed, the portal configuration file will be located in /opt/portal/portal.conf.Initially, the config file is filled with the default values. The minimal configuration change to start the portal is to add the LicenseKey property to the config file.The below sample configuration will start the portal on portal 3001 with PostgreSQL as a database, no TLS enabled, and all CMS assets (images, theme files, etc.) are stored in the filesystem.
You can, however, customize the provided example and make more suitable for your need using the configuration reference.
Start the portal serviceOnce the configuration is updated, you can start the portal service using the following command:
sudo systemctl start portal.service
To check status and log of the portal execute the following command:
systemctl status portal.service
Bootstrap the portalNow the portal is running on port 3001, but it needs to be bootstrapped by providing credentials for the super admin user since it’s the first you are launching it. Follow the bootstrapping section of the documentation to bootstrap the portal via the UI or the admin API.