Make your RPI3 device ready to deploy Laravel by following 6 Steps
Step 1: Burn the RPI3 initial stable image into your sd card.
a) Download RPI3 image
b) unxz the device image
$ unxz rpi3_initial_stable.img.xz
c) Burn image into sd card using Raspberry Pi Imager 1.2
Step 2: Boot your RPI3
a) Insert an sd card and then supply the power:
Step 3: Sign up for an account on Pantacor Hub
Step 4: Download and install the cli “pvr”
pvris the Pantavisor command line utility for interacting with your device. With
pvryou can share your firmware and other projects on Pantacor Hub. After you’ve downloaded the pvr binary move it to the bin folder. More information about pvr commands are in the docs.
pvr clone; pvr commit; pvr post
To install from github source code:
$ go get gitlab.com/pantacor/pvr $ go build -o ~/bin/pvr gitlab.com/pantacor/pvr
Note: If building pvr from source, you will need Go programming language installed to your system.
Step 5: Detect and claim your device to Pantacor Hub.
a) Connect a LAN cable between your RPI3 & computer/Router.
b) Open your terminal & run
$ pvr scan
c) Claim your device
$ pvr claim -c merely-regular-gorilla https://api.pantahub.com:443/devices/5f1b9c44e193a5000afa9901
d) Log into Pantacor Hub and check for the newly claimed device in the dashboard.
Step 6: Clone the device to your computer using the Clone URL of your device
$ pvr clone https://pvr.pantahub.com/sirinibin/presently_learning_pelican/0 presently_learning_pelican
Now your device is ready to deploy your Laravel 7.12.0 app
Deploy your Laravel 7.12.0 app to the device with these five Steps:
#1: Move to cloned device root dir
`$ cd presently_learning_pelican`
# 2: Add the app “laravel” into the device
sirinibin/arm32v7-laravel-7.12.0:latest is a Docker image made for the devices with ARM32 architecture
You can customize the Docker image for your Laravel app.
$ pvr app add laravel --from=sirinibin/arm32v7-laravel-7.12.0latest
#3: Deploy the changes to the device
$ pvr add . $ pvr commit $ pvr post
#4: Check the device status changes in Pantacor Hub dashboard and wait for the “DONE” status.
#5: Verify the “laravel” app deployment
Access the device IP: http://10.42.0.231 in your web browser.