Comments (21)
@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
Now everything should be fine apart from this bug I've right here
#31
from expose.
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.
@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.
I solve the issue following the @ahmedash95 instructions
thank you
from expose.
ended up using PM2 (https://pm2.keymetrics.io/) and everything worked right away. I created this file: /home/forge/.expose.php
from expose.
Hero status for @ahmedash95
from expose.
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.
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.
There is no way to specify the config file as a CLI argument or --option right?
from expose.
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.
same problem here. also changed my supervisor command like @goellner did. running without supervisor works ...
from expose.
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.
@ahmedash95 can you share how you set it up on Forge?
from expose.
Run it how? Via a daemon or manually?
from expose.
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
from expose.
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
Yep, that works. Thank you!
from expose.
Happy to help!
from expose.
I still cannot get it to work, how frustrating. I have installed it locally in my Forge site: (composer require...
).
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;
}
When I go to my expose url I get
But I can't get to the admin page nor any share, even though the share seems to work.
Lastly my config:
'admin' => [
'database' => '/home/forge/.expose/expose.db',
'subdomain' => 'admin',
So, what silly thing did I miss?
from expose.
@edalzell can you make sure the server's nginx config file has .
as prefix of server name
that way we are telling nginx to redirect any subdomain.(your expose domain)
to expose so you can get the proper response
from expose.
Turns out it was a DNS issue, I forgot to add the wildcard DNS entry. @ahmedash95's instructions went perfect
from expose.
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)
- PHP 8.2 dynamic properties deprecated HOT 3
- syntax error with v2.5.0 HOT 14
- Name not resolved HOT 1
- Trying to read .env files? HOT 5
- Delete Account (GDPR) HOT 2
- Cors error with Laravel inertia requests HOT 2
- Expose and Magento 2
- Expose crashes with asset helper in email
- App version HOT 6
- sail share: the link only shows the key, not the full URL HOT 2
- bug: sub domain generator never triggered with `share` command
- bug: sail share does not give a valid link HOT 3
- Public HTTP redirects to HTTPS HOT 1
- Can I somehow "bind" a subdomain for a specific user?
- Error while reading .env file in windows 11
- Composer plugins have been disabled for safety in this non-interactive session when building Docker image HOT 1
- Recommended specs for self hosted?
- Extra managed regions (e.g. Africa) HOT 1
- Set TCP Port range in Docker
- Client > Configuration page does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expose.