Deprecated: Return type of Stringy\Stringy::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/danielstjules/stringy/src/Stringy.php on line 270

Deprecated: Return type of Stringy\Stringy::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/danielstjules/stringy/src/Stringy.php on line 453

Deprecated: Return type of Stringy\Stringy::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/danielstjules/stringy/src/Stringy.php on line 850

Deprecated: Return type of Stringy\Stringy::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/danielstjules/stringy/src/Stringy.php on line 873

Deprecated: Return type of Stringy\Stringy::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/danielstjules/stringy/src/Stringy.php on line 893

Deprecated: Return type of Stringy\Stringy::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/danielstjules/stringy/src/Stringy.php on line 906
Heroku

Meeting participants

Deploy to Heroku

Someone told me that npm run build builds the application for production, i.e. for being deployed in a place where your customers will use it.

I heard that it is even possible to deploy such app on Heroku! :-)

However, deployment on Heroku may be a bit tricky, because our app needs to have two environments now.

  1. Node.js environment to build your application.
  2. PHP environment to run the server (just like before).

But we should be able to succeed :-)

  1. Try executing npm run build locally. What happens?

  2. If you don't have the composer.json file in the project, create it with {} content to meet PHP's requirements.

  3. If you don't have the Procfile file in the project, create it with the following contents to tell web server to serve files from the dist directory.

    web: vendor/bin/heroku-php-apache2 dist/
  4. Commit both new files (if any).

  5. Go to your apps on Heroku

  6. Add an application with a name meetings-vue-YOURLASTNAME and connect it to your Github's repository.

  7. In the console, use the heroku CLI tool to configure buildpacks (i.e. run configurations) for you app. You may need to install heroku-cli if you use your own computer.

    heroku buildpacks:add heroku/php -a YOUR_APP_NAME
    heroku buildpacks:add heroku/nodejs -a YOUR_APP_NAME
  8. Deploy the app.

And see mine instance :-)