define PORT

This commit is contained in:
CJ_Clippy 2025-01-11 20:38:14 -08:00
parent 10acbbfd24
commit 1fac45f084
6 changed files with 13 additions and 16 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
echo "Docker set up on $KAMAL_HOSTS..." echo ">>>>>>>>>>>>>>>> Docker set up on $KAMAL_HOSTS..."

View File

@ -11,4 +11,4 @@
# KAMAL_DESTINATION (if set) # KAMAL_DESTINATION (if set)
# KAMAL_RUNTIME # KAMAL_RUNTIME
echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds" echo ">>>>>>>>>>>>>>>> $KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds"

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
echo "Rebooted kamal-proxy on $KAMAL_HOSTS" echo ">>>>>>>>>>>>>>>> Rebooted kamal-proxy on $KAMAL_HOSTS"

View File

@ -32,19 +32,19 @@ fi
current_branch=$(git branch --show-current) current_branch=$(git branch --show-current)
if [ -z "$current_branch" ]; then if [ -z "$current_branch" ]; then
echo "Not on a git branch, aborting..." >&2 echo ">>>>>>>>>>>>>>>> Not on a git branch, aborting..." >&2
exit 1 exit 1
fi fi
remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1) remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1)
if [ -z "$remote_head" ]; then if [ -z "$remote_head" ]; then
echo "Branch not pushed to remote, aborting..." >&2 echo ">>>>>>>>>>>>>>>> Branch not pushed to remote, aborting..." >&2
exit 1 exit 1
fi fi
if [ "$KAMAL_VERSION" != "$remote_head" ]; then if [ "$KAMAL_VERSION" != "$remote_head" ]; then
echo "Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2 echo ">>>>>>>>>>>>>>>> Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2
exit 1 exit 1
fi fi

View File

@ -25,7 +25,7 @@ proxy:
timeout: 2 timeout: 2
# how long to wait for new containers to boot # how long to wait for new containers to boot
deploy_timeout: 270 deploy_timeout: 300
# Credentials for your image host. # Credentials for your image host.
registry: registry:
@ -47,14 +47,11 @@ builder:
# RUBY_VERSION: <%= File.read('.ruby-version').strip %> # RUBY_VERSION: <%= File.read('.ruby-version').strip %>
env:
# Inject ENV variables into containers (secrets come from .kamal/secrets). clear:
# PORT: 4000
# env: secret:
# clear: - DATABASE_PASSWORD
# DB_HOST: 192.168.0.2
# secret:
# - RAILS_MASTER_KEY
# Aliases are triggered with "bin/kamal <alias>". You can overwrite arguments on invocation: # Aliases are triggered with "bin/kamal <alias>". You can overwrite arguments on invocation:
# "bin/kamal logs -r job" will tail logs from the first server in the job section. # "bin/kamal logs -r job" will tail logs from the first server in the job section.

View File

@ -30,7 +30,7 @@ describe('image', function () {
describe('getStoryboard', function () { describe('getStoryboard', function () {
this.timeout(1000*60*15) this.timeout(1000*60*15)
it('should accept a URL and return a path to image on disk', async function () { it('should accept a URL and return a path to image on disk', async function () {
const url = 'http://38.242.193.246:8081/projektmelody-chaturbate-2025-01-11.mp4' const url = 'http://38.242.193.246:8081/original-20250109T020401Z.mp4'
const imagePath = await getStoryboard(url) const imagePath = await getStoryboard(url)
expect(imagePath).to.match(/\.png/) expect(imagePath).to.match(/\.png/)
}) })