I have one Drupal site in RHC Openshift, So i uploaded my site to one GitHub repository , So i interested in making one demo site via GitHub.IO server, So how could I establish this kind site via:
<username>.GitHub.IO/<repository _name>
So i think which it's need to install at least MySQL in my GitHub repository .!!!
So how could I do this work?
Thanks a lot for your attention.
To host sites on Github you need to use Github Pages. Github Pages is not a full-featured web host. It does not allow you to run any server-side code thus it is not possible to run a MySQL server on it.
Related
Finally i completed my first full project using server, client, data
i would like to know few things about how to host and upload full website include(server ,react, mysql)
i so wondering how that is work, for now i understand that to upload a simple website you need a domain and to hosting, just do npm run build and upload it..., this is something that i know but, when that is not just a simple website like
when i have such as
server side with Node.js + express that have requests (on localhost) *probably need to change the localhost to something else but what
Database running with MySql
React app that have many request to (localhost)
how can i hosting all of them and running my website for everyone, i mean that my sql will still running, CRUD Data will update normal, and the server will still get request and send or update them to mysql data.
and if I'll want to make some change on mysql, server, client
i want to change it like i change it now
Actually i'm not a FullStack developer if i don’t know it... 🥶 so i really interesting to understand all of that issues
i hope you guys havק An understandable answer for me, thanks 🙏 and just take your time :)
Well, where to start hehe. There are a lot of different ways to host a web app. Heroku for example makes this process really simple.
Personally, I use Digital Ocean to host my apps. This is generally how that goes:
I have a project with a folder structure that seperates the server logic and the client logic.
Since you're using Node, you build your client with npm run build. Next make sure the dist/build folder is inside your server folder. That is the folder you are going to 'host'. On Digital Ocean, you make a new droplet (which basically is just a tiny part of a server).
You install Node, Git, Pm2 and (for example) Nginx. You clone your project from Github to the server and install all the dependencies.
You have to do a few configurations with nginx (specifying a domain name for example) to make everything work. This article goes into more detail about that.
Also, a database is frequently hosted seperately. You should read more about that.
If you have everything setup, you can just code on your project as usual. Push new updates to github, and pull in the changes on the server.
Here is another post on Stackoverflow talking about hosting MySql with react.
I want to make a basic website to show some people and was thinking of hosting with heroku as its has been pretty good for other things.
However, I wasn't sure what to put in the procfile to just be able to have a html webpage show at https://appname.heroku.com. I tried googling it but all I was able to find was node.js stuff, and I don't want to have to get into that. All I really need is the command to put in the procfile.
If you have anything to contribute please add it here, and thank you if you already have.
Have in mind if it is a static page, I don't recommend you heroku. Instead upload it to both vercel or github pages because heroku has a limit of deployments and after 30 minutes of inactivity yo get the server sleeping so the next time you open the app, you will late a bit... Moreover, both vercel and github pages have https
By the other hand with vercel you can create an app from a repo, that means that you can to link an app with a repo so each time you make a push, the app in vercel gets deployed automatically (is the method I use)
I'm working on a WordPress site via Sourcetree. The previous dev working on this project had set up a local server with Docker, however I have no experience with this.
My question is - how can I connect to localhost to start developing?
Note-
I've downloaded mysql, xampp and wordpress locally
I have experience developing wordpress sites locally (via an FTP such as FileZilla), however I've never done so with git included.
Thanks.
Try to follow these instructions:
https://premium.wpmudev.org/blog/setting-up-xampp/
Probably one thing that you are not doing properly is that your project doesn't sit in xampp/htdocs/myproject as that way you can access it through http://localhost/myproject
How can I edit the application hosted on Heroku online? I need my remote HTML/CSS designer to do some layout fixes on my application hosted on the Heroku. Any help is really appreciated.
Currently, your best bet might be to Cloud9 to share and edit source code. You can deploy directly from Cloud9 to Heroku.
You cannot edit your application hosted on heroku online. If you have hosted your application code elsewhere on Github or Gitorious, it might be possible for your designer to make changes online there and then you can push the code to Heroku
I'm not sure if this is a programming question, or would be better served on a sister site.
I want to mock up a web site & distribute it by email to some non-tech people for comment.
I can't ask then to install an Apache server, but wondered if I could bundle the site into an .exe, or a .zip and have them open Index.php and play around with the site.
All users are non-techie; all will use Windows; the site is coded in PHP and all internal references to URLs, CSS< images are by way of $_SERVER['DOCUMENT_ROOT']
Any advice?
Just throw it on a web server hiding behind some authentication.
It'd be hard to ask a non-techie person to get it running seeing that it would need apache or another server that would run the php. If I were you I'd probably set up a site that's password protected, you send the link & password to the people and they have a look.
I recommend using something like XAMPP if you can get them to install it. Unfortunately, your website cannot run locally as is without the proper software.
Alternatively, you can either pay for web-hosting or create a server that you can access via its IP address from another user's machine. Make use of this guide for access control if you wish.