How to deploy app
- Registered or free domain with access to DNS records
- Credit Card
Register on the site https://console.advascale.cloud/sign-up
Fill in the fields name, surname, mail, password, and press “Continue“.
After that, you will receive a confirmation of registration to the specified mail.
And select a plan, confirm it with press the red button “Add”:
Fill in your payment details
Payments are fully automated and integrated with stripe.com :
After that, the domain will be in the status “Verification pending…”.
Add an “A” record on your domain registrar, using IP from the admin panel:
See below how it should be. (This is taken from one of the domain registrars):
In several minutes the domain will be active:
Using the FTP credentials you can connect to the server and upload your project data:
We will use FTP client Transmit. Fill in the host, username, password, port fields with your data and click connect:
Laravel framework uses .htaccess files for rewrite rules, and it fully supports by advascale.cloud.
require __DIR__.'/../vendor/autoload.php'; #to require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php'; #to $app = require_once __DIR__.'/bootstrap/app.php';
You can import your compressed MySQL dump of the database via the phpMyAdmin panel:
And use these database credentials in your application configuration files, in our case laraval use .env file:
DB_CONNECTION=mysql DB_HOST=dbhost-europe-west2.advascale.cloud DB_PORT=3306 DB_DATABASE=db_rybn_ml DB_USERNAME=u1066860 DB_PASSWORD=your_password
If all conditions are met, you will see your Laravel site.
Congratulations! Your project is deployed.
Some times need to run commands or execute initialize scripts, which can be done via a terminal.
Click on the button “Open terminal”:
As an example, we will execute the laravel database migration:
Periodically jobs can be added on the domain page under the “Edit cronjobs” section:
As an example, we will add laravel cache:clear job:
After click “Save”, the task will be performed every day at 1 am.
Each new line defines a separate job.