Skip to content

Commit

Permalink
EZP-30915: Fix for node version (ezsystems#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianz5 authored Sep 3, 2019
1 parent 740b82b commit f582c4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ hooks:
build: |
set -e
unset NPM_CONFIG_PREFIX
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | dash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm current
nvm install 10.15.3
# Configure GITHUB token if set. For use if you have own private repos, or to avoid API rate limits.
if [ -n "$GITHUB_TOKEN" ]; then
composer config github-oauth.github.com $GITHUB_TOKEN
Expand All @@ -108,6 +115,10 @@ hooks:
# Note: Http traffic is paused while this is running, so for prod code this should finish as fast as possible, < 30s
deploy: |
set -e
unset NPM_CONFIG_PREFIX
command -v nvm && nvm use 10.15.3
# Mainly relevant for eZ Platform demo usage, for own setup adapt this or remove and rely on migrations.
if [ ! -f web/var/.platform.installed ]; then
# To workaround issues with p.sh Varnish we clear container cache & temporary set Symfony Proxy
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"@babel/preset-react": "^7.0.0",
"@symfony/webpack-encore": "^0.22.4",
"@symfony/webpack-encore": "^0.28.0",
"node-sass": "^4.11.0",
"sass-loader": "^7.0.1"
}
Expand Down

0 comments on commit f582c4f

Please sign in to comment.