Giter Site home page Giter Site logo

Comments (21)

ahmedash95 avatar ahmedash95 commented on May 27, 2024 7

@ahmedash95 can you share how you set it up on Forge?

I'll write an article once I solve my last error but here is a quick recipe

First, create an empty repo then create a site from this repo. once you do that ssh to your forge server and find the nginx config for that domain and change it's content to be like that https://beyondco.de/docs/expose/server/ssl . and just replace the /location part as Forge taking care of all other stuff

ssh to your forge server and install expose globally

composer global require beyondcode/expose

then copy the config file to home directory

 cp /home/forge/.config/composer/vendor/beyondcode/expose/config/expose.php /home/forge/.expose.php

modify the database path at.expose.php like below (make sure expose-db directory exists as expose will not create it)

'database' => '/home/forge/expose-db/expose.db',

then run expose serve and make sure users tab is working
image

Now everything should be fine apart from this bug I've right here
#31

from expose.

filipac avatar filipac commented on May 27, 2024 4

What worked for me now: ln -s .expose/config.php .expose.php in /home/forge as that is the working directory for supervisord

from expose.

filipac avatar filipac commented on May 27, 2024 3

@mpociot so it seems that running expose from supervisor is having this problem and it does not seem to load the right configuration file (i deleted a comma from ~/.expose/config.php to check if startup fails). When running /usr/bin/php /home/forge/.composer/vendor/bin/expose serve from forge user it works as expected, it even fails if i delete that comma (loads the ~/.expose/config.php file). Any idea why supervisor might be broken? Here is my config:

directory=/home/forge
command=/usr/bin/php /home/forge/.composer/vendor/bin/expose serve local.filipac.net
numprocs=1
autostart=true
autorestart=true
user=forge

from expose.

enzolarosa avatar enzolarosa commented on May 27, 2024 2

I solve the issue following the @ahmedash95 instructions

thank you

from expose.

goellner avatar goellner commented on May 27, 2024 1

ended up using PM2 (https://pm2.keymetrics.io/) and everything worked right away. I created this file: /home/forge/.expose.php

from expose.

edalzell avatar edalzell commented on May 27, 2024 1

Hero status for @ahmedash95

from expose.

mpociot avatar mpociot commented on May 27, 2024

Can you try modifying the database configuration key?
Also, try and see if the database file exists.

When clicking the user link, expose is trying to connect to the SQLite database.

from expose.

filipac avatar filipac commented on May 27, 2024

I did try to change database key from config and work when running manually, but when running in supervisor the config is ignored.

from expose.

filipac avatar filipac commented on May 27, 2024

There is no way to specify the config file as a CLI argument or --option right?

from expose.

goellner avatar goellner commented on May 27, 2024

Can confirm, that when running with supervisord it is not working, but when starting it directly everything works as expected. I also had to change my startup command to command=/usr/bin/php /home/forge/.composer/vendor/bin/expose serve mydomain.com

from expose.

dasraab avatar dasraab commented on May 27, 2024

same problem here. also changed my supervisor command like @goellner did. running without supervisor works ...

from expose.

ahmedash95 avatar ahmedash95 commented on May 27, 2024

I was able to solve this through these steps

1 - $COMPOSER/vendor/beyondcode/expose/condig/expose.php to home directory -in my case- /home/forge/.expose.php

2 - open the file and change database to a custom path

'database' => '/home/forge/expose-db/expose.db',

3 - run expose serve

4 - /users should work for you as expose should be able to create db file

from expose.

edalzell avatar edalzell commented on May 27, 2024

@ahmedash95 can you share how you set it up on Forge?

from expose.

edalzell avatar edalzell commented on May 27, 2024

Run it how? Via a daemon or manually?

from expose.

ahmedash95 avatar ahmedash95 commented on May 27, 2024

Run it how? Via a daemon or manually?

as you want. can be manually like

/home/forge/.config/composer/vendor/bin/expose serve share.yourdomain.com --port 8085

or daemon using forge. but make sure to set the path to home directory
image

from expose.

SamuelNitsche avatar SamuelNitsche commented on May 27, 2024

Run it how? Via a daemon or manually?

as you want. can be manually like

/home/forge/.config/composer/vendor/bin/expose serve share.yourdomain.com --port 8085

or daemon using forge. but make sure to set the path to home directory
image

Yep, that works. Thank you!

from expose.

ahmedash95 avatar ahmedash95 commented on May 27, 2024

Happy to help!

from expose.

edalzell avatar edalzell commented on May 27, 2024

I still cannot get it to work, how frustrating. I have installed it locally in my Forge site: (composer require...).

Laravel Forge | dl-sites 2020-06-19 07-34-39

I have this in /home/forge:
image

And it is reading the config file (I had a typo in there the first time and got an error).

I have this in my nginx conf:

    location / {
        proxy_pass             http://127.0.0.1:8080;
        proxy_read_timeout     60;
        proxy_connect_timeout  60;
        proxy_redirect         off;

        # Allow the use of websockets
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

I have SSL on w/ wildcards:
image

When I go to my expose url I get
image

But I can't get to the admin page nor any share, even though the share seems to work.
image

Lastly my config:

    'admin' => [
        'database' => '/home/forge/.expose/expose.db',
        'subdomain' => 'admin',

So, what silly thing did I miss?

from expose.

ahmedash95 avatar ahmedash95 commented on May 27, 2024

@edalzell can you make sure the server's nginx config file has . as prefix of server name
image

that way we are telling nginx to redirect any subdomain.(your expose domain) to expose so you can get the proper response

from expose.

edalzell avatar edalzell commented on May 27, 2024

Turns out it was a DNS issue, I forgot to add the wildcard DNS entry. @ahmedash95's instructions went perfect

from expose.

goellner avatar goellner commented on May 27, 2024

Just to add to @edalzell comment, if someone has the same problem:

You have to have a wildcard A record in your DNS settings:

*.mydomain.com -> 123.123.123.123 (your server ip)

from expose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.