Skip to content

Commit

Permalink
Add start script
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 17, 2024
1 parent 2f30398 commit 89130fe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions api/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -x
set -euo pipefail

export ROOT_URL=$(echo "${APU_URL}" && grep -Po "[a-z]+\.[a-z]+$")

memcached -d -u root
sed -i "s/API_URL/${API_URL}/g" /etc/nginx/nginx.conf
sed -i "s/ROOT_URL/${ROOT_URL}/g" /etc/nginx/nginx.conf

nginx

npm run prod

0 comments on commit 89130fe

Please sign in to comment.