Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine-core
Commits
9c0e019d
Commit
9c0e019d
authored
5 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Instalation script extension for production.
parent
c311e37f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+47
-1
47 additions, 1 deletion
install.sh
with
47 additions
and
1 deletion
install.sh
+
47
−
1
View file @
9c0e019d
#/usr/bin/bash
mode
=
"dev"
if
[
-n
"
$2
"
]
;
then
if
[[
$1
=
~ ^
(
prod
)
$
]]
;
then
mode
=
$1
fi
fi
if
[
$mode
==
"dev"
]
;
then
echo
"[Installing AURA ENGINE for Development]"
fi
if
[
$mode
==
"prod"
]
;
then
echo
"[Installing AURA ENGINE for Production]"
fi
# Production
if
[
$mode
==
"api"
]
;
then
if
getent passwd
'engineuser'
>
/dev/null 2>&1
;
then
echo
"User 'engineuser' exists already."
;
else
echo
"Creating Engine User ..."
adduser engineuser
adduser engineuser
sudo
fi
echo
"Set Ownership of '/opt/aura/engine' to Engine User"
chown
-R
engineuser:engineuser
.
echo
"Copy Supervisor Config to '/etc/supervisor/conf.d'"
cp
configuration/supervisor/engine-api.conf /etc/supervisor/conf.d/
echo
"Create Log Directory
`
/var/log/aura/engine
`
"
mkdir
-p
/var/log/aura
mkdir
-p
/var/log/aura/engine
echo
"Create Configuration Directory
`
/etc/aura/engine
`
"
mkdir
-p
/etc/aura
mkdir
-p
/etc/aura/engine
fi
# Development and Production
echo
"Installing Web Application Packages ..."
sudo
./install-web.sh
./install-web.sh
echo
"Installing Python Requirements ..."
python3.7
$(
which pip3
)
install
-r
requirements.txt
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment