Skip to content

Commit

Permalink
frontend test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonghui Tang committed Aug 13, 2020
1 parent b8c94db commit 66e867a
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 127 deletions.
8 changes: 4 additions & 4 deletions script/_nginx_configure
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ nginx_configure()
{
if command -v nginx; then

top_dir=$(pwd)
top_dir="$(pwd)"

nginx_conf_file=$(nginx -V 2>&1 | grep -o "\-\-conf-path=\(.*conf\)" | cut -d "=" -f2)

sudo rm $nginx_conf_file
sudo rm ${nginx_conf_file}

sudo cp $top_dir/etc/rest/nginx.conf $nginx_conf_file
sudo cp "${top_dir}"/etc/rest/nginx.conf "${nginx_conf_file}"

sudo sed -i.bak "s:to be set:$top_dir/src/rest/frontend:" $nginx_conf_file
sudo sed -i.bak "s:to be set:"${top_dir}"/src/rest/frontend:" "${nginx_conf_file}"

else

Expand Down
Loading

0 comments on commit 66e867a

Please sign in to comment.