Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
d02236c1
Commit
d02236c1
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Install any missing node packages
parent
34f9eb9a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-ghost
+34
-0
34 additions, 0 deletions
src/freedombone-app-ghost
with
34 additions
and
0 deletions
src/freedombone-app-ghost
+
34
−
0
View file @
d02236c1
...
@@ -239,6 +239,23 @@ function restore_local_ghost {
...
@@ -239,6 +239,23 @@ function restore_local_ghost {
sed
-i
"s|password :.*|password : '
${
MARIADB_PASSWORD
}
',|g"
$ghost_config
sed
-i
"s|password :.*|password : '
${
MARIADB_PASSWORD
}
',|g"
$ghost_config
MARIADB_PASSWORD
=
MARIADB_PASSWORD
=
# install any missing packages
if
[
!
-d
/var/www/
${
GHOST_DOMAIN_NAME
}
/htdocs/node_modules/intl
]
;
then
cd
/var/www/
${
GHOST_DOMAIN_NAME
}
/htdocs
npm
install
passport-http-bearer@1.0.1
npm
install
amperize@0.3.4
npm
install
bcryptjs@2.4.3
npm
install
knex@0.12.9
npm
install
bookshelf@0.10.2
npm
install
cookie-session@1.2.0
npm
install
ghost-gql@0.0.6
npm
install
intl@1.2.5
npm
install
sanitize-html@1.14.1
npm
install
showdown-ghost@0.3.6
npm
install
superagent@3.5.2
npm
install
mysql@2.1.1
fi
systemctl start ghost
systemctl start ghost
restart_site
restart_site
fi
fi
...
@@ -285,6 +302,23 @@ function restore_remote_ghost {
...
@@ -285,6 +302,23 @@ function restore_remote_ghost {
sed
-i
"s|password :.*|password : '
${
MARIADB_PASSWORD
}
',|g"
$ghost_config
sed
-i
"s|password :.*|password : '
${
MARIADB_PASSWORD
}
',|g"
$ghost_config
MARIADB_PASSWORD
=
MARIADB_PASSWORD
=
# install any missing packages
if
[
!
-d
/var/www/
${
GHOST_DOMAIN_NAME
}
/htdocs/node_modules/intl
]
;
then
cd
/var/www/
${
GHOST_DOMAIN_NAME
}
/htdocs
npm
install
passport-http-bearer@1.0.1
npm
install
amperize@0.3.4
npm
install
bcryptjs@2.4.3
npm
install
knex@0.12.9
npm
install
bookshelf@0.10.2
npm
install
cookie-session@1.2.0
npm
install
ghost-gql@0.0.6
npm
install
intl@1.2.5
npm
install
sanitize-html@1.14.1
npm
install
showdown-ghost@0.3.6
npm
install
superagent@3.5.2
npm
install
mysql@2.1.1
fi
systemctl start ghost
systemctl start ghost
restart_site
restart_site
chown
-R
ghost: /var/www/
$GHOST_DOMAIN_NAME
/htdocs/
chown
-R
ghost: /var/www/
$GHOST_DOMAIN_NAME
/htdocs/
...
...
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