Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Oct 24, 2024
1 parent bf34818 commit c727518
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Jacked Server is a WebServer that support HTTP and WebSocket. Jacked Server is b
> npm run dev
> ```
### Using bare metal
Let's jack that laravel app! First, download the Jacked Server binary and run it:
```shell
Expand All @@ -28,6 +30,26 @@ sudo chmod +x jackit.phar
Now you access the laravel app at the address http://localhost:8080.
### Using docker
> This alternative doesn't require PHP with the necessary extensions to be installed on your machine (you would still need PHP for the previous laravel preparation - which won't require all the extensions that Jacked Server requires).
Let's jack that laravel app! For that, simply run the following command within the app's directory:
```shell
docker run -d --rm --name jacked-server -p 8080:8080 -v $(pwd):/var/www/app lotharthesavior/jacked-server:0.0.1
```
> Note that the latest version might not be the same as the one in the example command. Visit the [Docker Hub](https://hub.docker.com/repository/docker/lotharthesavior/jacked-server) to check the latest version.
Now you access the laravel app at the address http://localhost:8080.
> Remember to run the laravel necessary commands from inside the container then. As an example, if you want to run the Storage Link Artisan Command, you can do it with the following command:
>
> ```shell
> docker exec -it jacked-server bash -c "cd /var/www/app && composer install && php artisan storage:link"
> ```
## Installation
Install composer package:
Expand Down

0 comments on commit c727518

Please sign in to comment.