Message Turncoat in a DM to get moderator attention

Users Online(? lurkers):
10 / 11 posts
0 votes

Making SC open source, and allowing Git pushes to it?


Posts: 497

Do any of you more techy people know if it would be possible to host SC (or any forum) on Github in such a way that we can make it open source, and so that users can submit updates which, if accepted, get automaticly updated to the website?

By allowing everyone to contribute to the code, I feel like we could create a really unique project that is owned and ran by the community 

 

I tried to look for a feature like this on Github, but it doesn't seem to exist. What are your guys ideas?

Posts: 2866
0 votes RE: Making SC open source, and allowing Git pushes to it?

This forum is on Github, but it is a private repo.

I am not going to open-source it, if ur talking about this one in particular.

 

Now if this were to happen, you can set up a build process that either runs each night and checks if there is a github update and auto publishes the website, or idk if there is an event API or something in github, if there is you can trigger it with that event, but nightly updates should be fine.

Cheery bye!
Posts: 497
0 votes RE: Making SC open source, and allowing Git pushes to it?

i wouldn't ask you to open source this place Good, though I think if you did it would be cool and I would def contribute code 

 

I don't understand how it is you are able to run a server which points to github hosted files. Can you please tell me more about that or give me a link where I can learn more?

Posts: 2759
0 votes RE: Making SC open source, and allowing Git pushes to it?

Luna sc might actually die look at my sc emergency thread you will be like wtf

🌺🐀 🌺
Posts: 2866
0 votes RE: Making SC open source, and allowing Git pushes to it?

i wouldn't ask you to open source this place Good, though I think if you did it would be cool and I would def contribute code 

 

I don't understand how it is you are able to run a server which points to github hosted files. Can you please tell me more about that or give me a link where I can learn more?

I have never done the entire thing myself, I have just seen it at 2 jobs already being done. It is like this, you install git on the server machine and have a batch file, or other more complex infrastructure, and do a git -fetch command. Then you read the result of this command, if there are new commits, you can do git -pull again via the batch file or something, once it is pulled you can compile the new code, again via a batch command. And you can publish it via a batch command. If u use linux, it would just be different commands, or maybe even the same idk the exact syntaxes.

I have done some of this process at my prev job, but not the entire thing. We used Jenkins to do our builds there, it basically ran the batch commands I talked about.

Now you need a way to trigger this batch file every 24 hours, how to do that idk on the top of my head, but 100% there are multiple ways to do it.

 

I dont have a tutorial at hand, but you can google each step that eludes you. I just googled "how to run a batch file every 24 hours" and got this (on first glance looks good):

https://helpdeskgeek.com/windows-11/how-to-schedule-a-batch-file-to-run-in-windows-11-10-using-task-scheduler/#:~:text=Schedule%20Batch%20Files%20With%20Windows%20Task%20Scheduler,-Place%20your%20bat&text=Start%20the%20process%20by%20opening,to%20run%20your%20batch%20file

Depends on your server too, if you have full access to it, if its a windows or a linux and so on.

 

 

You can also ask ChatGPT btw, I think that would be the best course of action, not even joking. I used it to learn how to use SignalR library for example. I didn't even know about this library, till GPT told me.

Just ask it the same question as here.

Cheery bye!
Posts: 497
0 votes RE: Making SC open source, and allowing Git pushes to it?

ty good <3

Posts: 2866
0 votes RE: Making SC open source, and allowing Git pushes to it?

git status might be better then gitch fetch command

you may have to experiment, i dont remember such details

Cheery bye!
last edit on 3/25/2023 1:01:16 PM
Posts: 2759
0 votes RE: Making SC open source, and allowing Git pushes to it?
Good said: 

i wouldn't ask you to open source this place Good, though I think if you did it would be cool and I would def contribute code 

 

I don't understand how it is you are able to run a server which points to github hosted files. Can you please tell me more about that or give me a link where I can learn more?

I have never done the entire thing myself, I have just seen it at 2 jobs already being done. It is like this, you install git on the server machine and have a batch file, or other more complex infrastructure, and do a git -fetch command. Then you read the result of this command, if there are new commits, you can do git -pull again via the batch file or something, once it is pulled you can compile the new code, again via a batch command. And you can publish it via a batch command. If u use linux, it would just be different commands, or maybe even the same idk the exact syntaxes.

I have done some of this process at my prev job, but not the entire thing. We used Jenkins to do our builds there, it basically ran the batch commands I talked about.

Now you need a way to trigger this batch file every 24 hours, how to do that idk on the top of my head, but 100% there are multiple ways to do it.

 

I dont have a tutorial at hand, but you can google each step that eludes you. I just googled "how to run a batch file every 24 hours" and got this (on first glance looks good):

https://helpdeskgeek.com/windows-11/how-to-schedule-a-batch-file-to-run-in-windows-11-10-using-task-scheduler/#:~:text=Schedule%20Batch%20Files%20With%20Windows%20Task%20Scheduler,-Place%20your%20bat&text=Start%20the%20process%20by%20opening,to%20run%20your%20batch%20file

Depends on your server too, if you have full access to it, if its a windows or a linux and so on.

 

 

You can also ask ChatGPT btw, I think that would be the best course of action, not even joking. I used it to learn how to use SignalR library for example. I didn't even know about this library, till GPT told me.

Just ask it the same question as here.

 Chat gpt helped me make tons of money investing in stock.

I spent it on fixing my infertility issues.

🌺🐀 🌺
last edit on 3/25/2023 1:05:41 PM
Posts: 3
0 votes RE: Making SC open source, and allowing Git pushes to it?

nop

last edit on 3/26/2023 5:09:33 AM
Posts: 2377
0 votes RE: Making SC open source, and allowing Git pushes to it?

Elon gives away twitter source code, YEAH!

https://github.com/twitter/the-algorithm

"Elon Musk
@elonmusk
Twitter recommendation source code now available to all on GitHub"

 

FEAR! FEAR! FEAR! FEAR! FEAR! FEAR!
10 / 11 posts
This site contains NSFW material. To view and use this site, you must be 18+ years of age.