This commit is contained in:
@@ -31,6 +31,9 @@ RUN usermod -aG sudo root
|
|||||||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
|
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
|
|
||||||
|
# Install PM2 globally
|
||||||
|
RUN npm install -g pm2
|
||||||
|
|
||||||
# # Switch to Fish shell
|
# # Switch to Fish shell
|
||||||
# SHELL [ "fish", "--command" ]
|
# SHELL [ "fish", "--command" ]
|
||||||
# RUN chsh -s /usr/bin/fish
|
# RUN chsh -s /usr/bin/fish
|
||||||
|
|||||||
@@ -92,6 +92,6 @@ sed -i "s/^ nodename:.*/ nodename: $HOSTNAME/" "$CONFIG_FILE"
|
|||||||
# Start the cron service
|
# Start the cron service
|
||||||
service cron start
|
service cron start
|
||||||
nohup teleport start &
|
nohup teleport start &
|
||||||
|
z
|
||||||
# Start the application with Laravel serve command
|
# Start the application with pm2
|
||||||
exec php artisan serve --host=0.0.0.0 --port=8000
|
exec pm2-runtime "php -t public -S 0.0.0.0:8000"
|
||||||
|
|||||||
Reference in New Issue
Block a user