danhunsaker / nanobox-adapter-proxmox

Provider for deploying Nanobox apps to Proxmox clusters.
https://nanobox.io
MIT License
1 stars 1 forks source link

nanobox run fails #1

Open anderslevin opened 6 years ago

anderslevin commented 6 years ago

Hi. I tried to execute nanobox run ./dev but got the following output:

Can not find php70-libsodium to install Please verify they exist. Check what extensions are available here: https://github.com/nanobox-io/nanobox-engine-php/blob/master/doc/php-extensions.md

! FAILED TO BUILD ENVIRONMENT !

Checking the link, one can see that indeed libsodium is not supported for php-7.0. I then dropped the php version to 5.6 in the boxfile.yaml and tried again:

error /app/node_modules/node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: /app/node_modules/node-sass

I have also tried to use php-7.0 and change libsodium to sodium but get the same error.

danhunsaker commented 6 years ago

Yeah, I haven't had a chance to properly maintain this one, so it's quite a bit outdated, now. I'm really hoping to get back to provider support work, soon, so I can update this and other adapters.

anderslevin commented 6 years ago

Hi. I got it to start with the following changes to the boxfile.yaml

diff --git a/boxfile.yml b/boxfile.yml
index f95ee4e..5888d36 100644
--- a/boxfile.yml
+++ b/boxfile.yml
@@ -14,7 +14,7 @@ run.config:
       # required by app
       - curl
       - gmp
-      - libsodium
+      - sodium
       - mcrypt
       - newrelic
       - pdo_mysql
@@ -48,7 +48,7 @@ run.config:

   # Includes the Node.js package in your runtime
   extra_packages:
-    - nodejs
+    - nodejs-8.11.3
     - newrelic
     - python-2

@@ -69,6 +69,7 @@ run.config:
   # Runs npm in the final step of your build process
   extra_steps:
     - ln -s /app/xdebug.ini /data/etc/php.d/
+    - npm rebuild node-sass
     - yarn

 deploy.config:
@@ -79,6 +80,9 @@ deploy.config:
   before_live:
     web.laravel:
       - php artisan migrate --force
+      - chmod 777 .env
+      - php artisan cache:clear
+      - php artisan key:generate
   before_live_all:
     web.laravel:
       - mkdir -p storage/framework/{sessions,cache,views}