php -S 127.0.0.1:8000
fromapi
folderng serve --proxy-config proxy-local.config.js --serve-path ringup
fromfrontend
folderapi/credentials.php
: create a file with the following format:<?php // This should be present on every system with the appropriate credentials, but // NOT pushed to version control. $username = "<username>"; $password = "<password>"; $dbname = "<dbname>"; ?>
- In the
frontend
folder, runng build --optimization true --base-href /ringup/
. This will output all the frontend bundles to thefrontend/dist
folder. These are the files that should be copied directly into theringup/
folder on CPanel. - In the
api
folder, modify the following files:credentials.php
: create a file with the following format:
<?php // This should be present on every system with the appropriate credentials, but // NOT pushed to version control. $username = "<username>"; $password = "<password>"; $dbname = "<dbname>"; ?>
.htaccess
: comment out the devAccess-Control-Allow-Origin
header and uncomment the prod headerLoginController.php
: make sure that$username_hash
and$password_hash
are set to the hashes of the desired login credentials. DO NOT push this to version control.
- Copy all contents of the
api
folder to theringup/api
folder on CPanel.
- In
frontend/src/environments/environment.prod.ts
, uncomment the line forapiBase
that is meant for testing prod locally and comment out the one meant for actual prod. - In the
frontend
folder, runng build --prod --optimization true --base-href
. This will output all the frontend bundles to thefrontend/dist
folder. - In
api/.htaccess
, replacelocalhost:4200
from theAccess-Control-Allow-Origin
header withlocalhost:8000
php -S 127.0.0.1:8000
fromapi
folder- Launch
frontend/dist/amaranth-ringup/index.html
from your browser