Guide

How to deploy app

Pre-requirements

  • Registered or free domain with access to DNS records
  • Credit Card

Sign-up

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.

Add domain

Fill in your domain name in Advascale domains (as an example form there and below will be used rybn.ml domain name).

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…”.

Domain Actions

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:

FTP actions

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:

Upload your project to the domain folder (in our case it rybn.ml folder), as an example we will upload the Laravel project:

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';

Database config

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

Check results

If all conditions are met, you will see your Laravel site.

Congratulations! Your project is deployed.

Non-interactive shell

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:

Scheduled jobs

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.