oussamatn / radio-player

Azuracast PWA Radio Player
https://dev.player.jelliti.me
GNU General Public License v3.0
46 stars 12 forks source link

cPanel installation GUIDE #5

Closed danielrodrigohub closed 2 years ago

danielrodrigohub commented 2 years ago

Hi, I found amazing your code. However, your installation guide was not clear at all. I would like to suggest instructions for installing into subdomains with the Azuracast's API. Thanks!!!!

oussamatn commented 2 years ago

Hi, To run this project on a shared hosting environment you'll need to clone it locally. Then make your modifications into your configuration file.

Once everything is done, go to the command line then run : npm run build . This will create a new folder dist with all static files and assets.

The next step is to copy this folder into your shared hosting server.

Example: if you are using CPanel then create a new subdomain with new folder. Copy all dist content to the dist content to this folder.

Sometimes you'll rum into a few 404 errors. To resolve this problem I suggest to add a .htaccess file with this configuration:


<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>