Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
communication-install-scripts
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
Container Registry
Model registry
Operate
Environments
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
Ruben Rodriguez
communication-install-scripts
Commits
982ae639
Commit
982ae639
authored
4 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
Improvements to canvas script
parent
c04f36ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Canvas.sh
+5
-1
5 additions, 1 deletion
Canvas.sh
with
5 additions
and
1 deletion
Canvas.sh
+
5
−
1
View file @
982ae639
...
...
@@ -67,13 +67,14 @@ cd /srv/canvas
su canvas
-l
-c
'git clone https://github.com/instructure/canvas-lms.git /srv/canvas'
su canvas
-l
-c
'git -C /srv/canvas checkout stable'
for
config
in
amazon_s3 dynamic_settings database
\
for
config
in
amazon_s3 dynamic_settings database
logging
\
delayed_jobs domain file_store outgoing_mail security external_migration
;
\
do
cp
/srv/canvas/config/
$config
.yml.example /srv/canvas/config/
$config
.yml
;
done
su canvas
-c
"sed 's/your_password/
$DBPASS
/' -i /srv/canvas/config/database.yml"
su canvas
-c
"sed 's/12345/
$(
pwgen 50
-n1
)
/' -i /srv/canvas/config/security.yml"
su canvas
-c
"sed 's/canvas.example.com/
$HOSTNAME
/' -i /srv/canvas/config/domain.yml"
su canvas
-c
"sed '/production:/a
\ \
log_level: info' -i /srv/canvas/config/logging.yml"
gem
install
bundler
-v
1.13.6
npm
install
-g
coffee-script@1.6.2
...
...
@@ -111,6 +112,9 @@ production:
- redis://localhost
EOF
systemctl
enable
redis-server
systemctl start redis-server
cat
<<
EOF
> /etc/apache2/sites-enabled/canvas.conf
#PassengerLogLevel 5
PassengerStartTimeout 300
...
...
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