Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
S

shaunsund

@shaunsund
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GitHub Pages not sourcing the env.sh file
    S shaunsund

    Hello,

    I was using the main branch of a website repo and noticed it wouldn't publish pages.

    Turns out the app isn't sourcing the env.sh file as the output below shows after editing the env.sh file and restarting the app.

    Connecting...
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH
    
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# cat ../data/env.sh 
    #!/bin/bash
    
    export BUILD_BRANCH=main
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH
    
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# source ../data/env.sh 
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH
    main
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# 
    
    

    Thanks!

    GitHub Pages

  • GitHub Pages not sourcing the env.sh file
    S shaunsund

    @joseph I restarted the app several times.

    A fresh restart gives me:

    Reconnecting...
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH
    
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# source /app/data/env.sh 
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH
    main
    root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# 
    

    Something seems off with the start script - at least when it sources the env.sh file at the start of the container.

    GitHub Pages
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search