[ home ] [ site / arch ] [ pony / oat / ef ] [ rp / fan ]

/site/ - Site Issues

The board for discussing site related issues, questions, concerns, and suggestions.
Name
?

This field is optional. You can choose any name you want, or you can post anonymously by leaving this field empty.

Tripcodes are a way to identify yourself between posts without having to register with the site. To use a tripcode, enter your name as ‹name›#‹key›.You can choose anything you want as the key—it is private and will never be shown to other posters or stored on the server. For example:

Rarity#bestpony → Rarity!.4PK7yxdII

If you want a tripcode containing specific words, you can download a program designed to search for tripcodes, such as Tripcode Explorer.

Email?

Entering an e-mail is optional.

There are also code words you can enter here which perform certain actions when you submit your post.

  • sage — lets you post without bumping a thread.
  • nonoko — uses the original post behavior to redirect to the board index.

These can be used at the same time as an e-mail address by typing ‹email›#‹action›.

You can also use Skype names in place of an e-mail. The notation is the same as a link to a username on skype itself, which is skype:‹username›

Subject
Comment?
Giving emphasis
[b] Bold [/b] Ctrl + B
[i] Italic [/i] Ctrl + I
[u] Underlined [/u] Ctrl + U
[s] Strikethrough [/s] Ctrl + R
Hiding text
[?] Spoiler text [/?] Ctrl + S
[h] Hide block of text [/h] Ctrl + H
Special
[rcv] Royal Canterlot voice [/rcv] Ctrl + K
[shy] Fluttershy voice [/shy]
[cs] Comic Sans [/cs]
[tt] Monospaced [/tt]
[d20], [4d6] — Dice rolls
URLs and linking
Link to a post on the current board
>>1234
Link to another board
>>>/pony/
Link to a post on another board
>>>/pony/1234
Hypertext links
[url=https://www.ponychan.net/] Ponychan [/url]
File
Options
Password?

This field is for editing and deletions.


Using the Ponychan Development Tools tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11962

The ponychan development server utilizes a workflow built around Vagrant and VirtualBox. This provides an OS-agnostic development environment where one can safely test software deployments on their local machine before pushing it to the live server.

My instructions assume you're using Windows, but outside of the steps for opening the command line the instructions are the same.

Requirements

Install the following tools on your OS:

Virtualbox -- Used to execute a virtual OS installation.

Vagrant -- A script-friendly toolchain used to provision a virtual machine (i.e. VirtualBox)

git -- A revision management tool.

Installation

Open the "Git CMD" tool from the Start menu.

Download the ponychan-tinyboard source code and development environment by executing:
git clone https://bitbucket.org/ponychan/ponychan-tinyboard.git

Navigate to that directory by executing:
cd ponychan-tinyboard

Start up the ponychan development server by executing:
vagrant up


This will take several minutes to configure your virtual environment. When complete, you should see the following message:
==> default: Server set up, please browse to http://172.27.0.2/install.php
==> default: to complete the installation. Default database settings will work.
==> default: After you complete the installation steps, go to
==> default: http://172.27.0.2/mod.php and log in as admin:password.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11963

File: 1500438626065.jpg (76.96 KB, 625x478, dennal.jpg)

I haven't progressed further than that tonight. I can write further instructions or answer questions you might have. Just -- please, don't brush this off.

LyCountry code: ponychan.png, country type: customflag, valid: 11978

File: 1500536009135.jpg (112.43 KB, 714x1000, 2-56f4540c1f507200557fa75f8d0e…)

>>11963
>>11962
I'd ask you what is the point of copy-pasting ponychan's tinyboard readme file from bitbucket but I get the feeling I'd not get a satisfactionary response anyway.

What is even the point of this thread?

LyCountry code: ponychan.png, country type: customflag, valid: 11979

File: 1500536171970.jpg (42.12 KB, 571x599, 22-04020c2eebf28931fdb1ff89676…)

Basically what I'm saying is that any half-capable programmer will get it to work without the need for you explaining how to use development tools.

Ponychan's development can also be handled directly via any kind of http server, without the need for a virtual machine, granted it'll be lacking few things here and there, but it's not an issue if you're working on php code.

Just honestly why did you make this thread?

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11985

>>11978
>>11979
Then this site's tech admin isn't half-capable, because he's not using it.

Blindly pushing major revision updates to the live server isn't smart. I made this thread in the hopes someone might understand how to not debug on the live server. I don't know what kind of workflow you're used to, but competent developers don't go and dick around on the live server.
This post was edited by its author on .

LyCountry code: ponychan.png, country type: customflag, valid: 11987

File: 1500568804825.png (348.43 KB, 800x1132, 84-eeb36247d7725c860631a774ded…)

>>11985
>Then this site's tech admin isn't half-capable
more like a dev (not admin even) who is busy with life and other shit and works vol. on ponychan in his spare time
sure, he probably should do more changes in a dev environment. that's about the only correct point.

>Blindly pushing major revision updates to the live server isn't smart.

He hasn't made any.
At least nothing you should consider a "major revision update".
All he tested live was webm support/thumbnail generation.

>but competent developers don't go and dick around on the live server.

oo someone never implemented hotfixes and made bodges I see.

seriously though this thread is pointless.
This post was edited by its author on .

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 11988

>>11987
>At least nothing you should consider a "major revision update".
Going from PHP5 to 7 and Ubuntu 14 to 16 isn't a "major revision update"?
https://en.wikipedia.org/wiki/Software_versioning
It meets every definition of the phrase I've ever encountered.

>sure, he probably should do more changes in a dev environment. that's about the only correct point.


That's literally what this thread is about. Zeke behaved as if there were no development tools for the site. While the readme on the bitbucket describes how to use to tools, it doesn't describe what they are and where to find them.

I'm proud of you for knowing what Vagrant is, but it doesn't seem like you're the intended target of this thread.
This post was edited by its author on .

LyCountry code: ponychan.png, country type: customflag, valid: 11989

File: 1500584744193.png (940.28 KB, 800x1127, 184-a73e0300af0de751b0d7de5a08…)

>>11988
I thought you were talking about the software which we're discussing, namely ponychan-tinyboard; not the server it's running on.

>Zeke behaved as if there were no development tools for the site.

Yet running apt-get upgrade is not related to the development of the site.
It's simply updating packages for the server.

>but it doesn't seem like you're the intended target of this thread.

then who is?
Zeke?
Why don't you go to him directly, instead of making a thread.

This thread really is pointless.

all you're trying to do is prove that someone didn't use the dev environment.
you're right, once or twice, or 20 times.
so?

how's that related to writing instructions to all the 1 or 2 people even interested in changing any code for ponychan?
Zeke is perfectly capable of running vagrant, you know, as is anyone who has a browser and can search.
This post was edited by its author on .

AnonymousCountry code: ponychan.png, country type: customflag, valid: 11991

You know that when you test a production server you test the custom softare along with the dependencies, right?

Or do you literally think software development is just writing code?
This post was edited by its author on .

AnonymousCountry code: ponychan.png, country type: customflag, valid: 11992

You know just typing "dist-upgrade" fucks with your config files, right?
This post was edited by its author on .

mellowCountry code: ponychan.png, country type: customflag, valid: 11995

>>11978
>>11979
No need to shout down someone trying to help with the site. This thread isn't 'pointless'. A lot of us on the moderation don't have context on the technical side of the site to understand if things are being done improperly, and having people who are is very helpful, especially when there are very few people available to handle the sites backend.

LyCountry code: ponychan.png, country type: customflag, valid: 12008

File: 1500629340717.png (1.05 MB, 1000x1500, 605-5cc3d136446cc3e2fa3575c282…)

>>11995
Not shouting, more like calmly asking why.
Generally if you don't know how to change code, you'd do more harm than good regardless.
And if you knew how to code, using tools as simple as these is literally a google search away.

I wanted to make some changes, so I downloaded the repo, tried the vagrant thing, it didn't work, so I ended up hosting a http server with mysql, made few changes so that the application installs and doesn't rely on shell commands as much, since they're not available on my installation and then it started working.

What I'm saying is that unless you know what you're doing, you might hit a wall regardless of how good something is explained.
For instance: vargrant will not play nice with windows, sometimes.
So the entire guide on bitbucket + this don't even work for me and won't even work for many others, yet it's still possible to get it running if you have the know-how, or at least a bit of it.

I'm not trying to say that it's not worth learning something new, or trying to help others learn, but I hardly think that ponychan's /site/ board should be "babby's first instructions to using git and vagrant"
This post was edited by its author on .

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12044

>>12008
>so I downloaded the repo, tried the vagrant thing, it didn't work

It worked for me when I stepped through it and wrote down my exact steps that I posted in this thread. Maybe you should try following them?

"Here's the first step to developing for this site" seems pretty useful for the /site/ board.

LyCountry code: ponychan.png, country type: customflag, valid: 12087

File: 1500883173619.jpg (1.26 MB, 1653x2338, 116-29f2acd106855a4f204b195cff…)

>>12044
>It worked for me when I stepped through it and wrote down my exact steps that I posted in this thread. Maybe you should try following them?
gee it's almost
I dunno
if we did the same thing
and it only worked for one of us.

impossible.

I did get it working and made the changes I wanted, which are now applied to the site.
What about you?

>"Here's the first step to developing for this site" seems pretty useful for the /site/ board.

>/site/ - Site Issues
>The board for discussing site related issues, questions, concerns, and suggestions.
See "how to work on the site tutorials" anywhere in this description?

You literally made a tutorial, I'm pointing out that people don't need tutorials to do things and you're stubborn about the fact they need them.

That's literally this whole thread.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12092

>>12087
>I did get it working and made the changes I wanted, which are now applied to the site.

...

The site repo still hasn't been updated since April. I can't make changes to the site if I don't have access to the current state of the site. You're doing exactly the kind of thing that I've made several threads trying to prevent.

Can you just get over yourself for a bit and realize that just because you *can* go into the live server and muck around with things doesn't mean that's anywhere remotely close to good development practices?

I'm trying to encourage as many people as possible to develop for the site in a sound manner. What is your goal?
This post was edited by its author on .

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12093

>>12087
>gee it's almost
>I dunno
>if we did the same thing
>and it only worked for one of us.
>
>impossible.
And rather than use this thread to discuss what you might have been doing wrong, you shit on the idea of having a thread that has a goal of solving exactly the kind of problem you were running into.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12094

Really, I'm getting a lot of flak from around the community for how I'm approaching this, but how else am I supposed to behave when people are aggressively pushing their bad workflow?

Does anyone have any interest in making sure the site remains secure and stable, or is everyone just content giving the keys to the kingdom to any novice Dunning-Krugering their way through PHP?
This post was edited by its author on .

!pinkie78OsCountry code: ponychan.png, country type: customflag, valid: 12095

File: 1500935828029.png (58.23 KB, 564x697, Lapis_sketch_08.png)

>>12094

Or maybe you're getting flak from the community because you yourself are so aggressively pushing your own thoughts on the matter.

Two different threads on the subject, multiple posts in a row going on about how you're right and everyone else is wrong, pushing back against anyone who doesn't immediately agree with you...

That's a recipe for making sure that no one wants to listen to you or what you have to say.

Don't blame other people for how you choose to handle things. You could've gone about this a lot better, but you haven't, so obviously it's going to fall on deaf ears.

tense!q6YrzPVCcsCountry code: ponychan.png, country type: customflag, valid: 12096

>>12095
You didn't answer either of my questions.

None of my concerns have been even *acknowledged*, let alone addressed. Everyone just seems to want to hand-wave it away as unimportant or unnecessarily hostile, when literally the only response I get out of anyone is "this is pointless".

Do you want to help move this in the right direction, or do you want to continue supporting the staff's stance that their workflow should be respected simply because they have it?

The scripts crawling the web looking for vulnerabilities don't care if you tried your best, and I'm approaching it with that in mind.
This post was edited by its author on .

LyCountry code: ponychan.png, country type: customflag, valid: 12098

File: 1501002727910.jpg (342.29 KB, 740x895, 435-8c8dcc0d280760b0905f29c069…)

>>12092
>and realize that just because you *can* go into the live server and muck around with things
Gee, I can?
I didn't realize that I could.

I suppose all the changes I did were on the live server then.
And not, like
on a dev server.
And then I didn't ask anyone to put them on the live server.

Because I didn't talk with people who wanted the changes in the first place and since I'm capable enough, I was able to create something.

Look, I talked to Zeke, Fen (before ownership change), and Mikie a bit.
Why are you mad about things changing, just not in the exact way you want them?
It's not like someone's going to push the github repo to live servers and re-install ponychan every time there's a change.

Usually changes are made, a file at a time.
Zeke should probably update the repo, and I've mentioned that few times to him, I believe.

>>12093
>you shit on the idea of having a thread that has a goal of solving exactly the kind of problem you were running into.
I shit on your way of doing it, which is being uncapable of solving any kind of menial problem on your own.

Issue:
Vagrant doesn't work. Ever. It pulls a box, but doesn't fully start.
SSH session is never working.

Diagnosed:
Vagrant doesn't like Windows.
VM starts, but unless started with VB it never fetches the right IP address.
Issue reported over and over, turning Intel's VT apparently fixes it, but it was already enabled on my machine, thus, not fixable like that.

Solution:
Remove Windows / Stop development using Vagrant.

>>12094
>but how else am I supposed to behave when people are aggressively pushing their bad workflow?
No one's aggressively pushing their bad workflow.
We simply don't follow the rules for modifying a single file at a time.

I don't believe Zeke would've made explosive changes on the live server.

>>12095
He has a good point but executes it extremely hostilely.
We're doing things for free, because we like the place.
No need to scream all the time.
No need to make instructions for us, as we're more than capable.

>>12096
This thread is pointless.
>The scripts crawling the web looking for vulnerabilities don't care if you tried your bes
Oh geez if only we had more than 1 entry point, maybe that'd be an issue.

Solved on my own, in about 1 hour.

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12127

>>11962
As someone that used ponychan's virtual environment over the span of a year I developed here, I have to say, the shear quantity and magnitude of caveats specific to Windows makes it not worth the effort. I got the environment working on Windows, and it was my primary workspace for coding, but I wouldn't do it again.

Look up node-gyp -- a used dependency in the babel workflow -- on stack overflow. You think it still couldn't be that big of a deal, but then you think twice after you have to install python 2.7 and play around with the global scope and make sure you don't also have Python 3 installed. Then you'll think twice again when you realize you have to install a specific version of visual studio -- and you'll have no way of confirming whether or not you're making progress in fulfilling the required dependencies because never at any point will the console output what you were missing that broke the build. Then maybe that Visual Studio package wasn't the right package you wanted (Even the readme is written in the style like they aren't really confident in which package you need to install). And then you google for more help and find out that you are required to install the 64 bit version of node if you're on a 64 bit OS (the package won't warn you about this either at any point) and, after going through the installation steps, in a particular installation order, maybe, just fucking maybe your console will output an error on the first build but will succeed in the second build.

But really you should just do a dual boot installation of ubuntu and be done with it.

Apologies for my long rant. Installing this on windows is at least possible, but it's like pulling teeth.

Starshine!Laura/wmXMCountry code: ponychan.png, country type: customflag, valid: 12128

>>12127
Hi Shutterbox, long time no see.

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12129

>>12128
Hi Starshine. I should stop by here more often but lately I haven't had the chance. I can probably provide help setting up the VM and using the repository. Macil was pretty diligent at making sure every site update went through the repository first.

>>12098
Vagrant will give you some trouble on Windows as well. This is because Windows doesn't come with SSH, and vagrant can't provide it in the installation because of license-related reasons. So the workaround is to install the full version of git, not a portable version, then you add the folder with the ssh binary to your PATH variable.

Virtualbox will also give you some trouble if you have some theme patcher installed for some stupid reason.
This post was edited by its author on .

thonCountry code: ponychan.png, country type: customflag, valid: 12131

<3 shutter

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12132

>>12131
Hiya, Anonthony!

>>12130
Hey Mikie, good luck on your new admin role. I know it's quite a shakeup for both admins to simultaneously resign, but it's been a while since we've had any admins that didn't have to power struggle to make decisions on their own. Not even Fen really had that privilege. Maybe you and Flutters can make something out of it.

I kind of wish I was able to make a bigger difference after the merger - to be able to get old regulars to come back to the site thinking, "wow, looks like I was missing out here. I should have come back sooner", rather than the proverbial OP greeting of "Wow, this place still exists?". So maybe the site needs fresh blood to make that possible, even if it is a famous shitposter like yourself.

Something still can be done about this place. It can be a pain in the ass sometimes, but if you don't have to deal with the admin drama like the site did over the past six years, don't feel discouraged. You set the tone, Mikie.

I'll definitely make time to show you how to get the VM running and where exactly I left off with coding since there seems to be interest now.

LyCountry code: ponychan.png, country type: customflag, valid: 12134

File: 1502018772814.jpg (897.05 KB, 1200x1200, 430-04e2c91d82683a8d3f323236d6…)

>>12127
>>12129
>>12132
about the only point I was trying to make in this thread is that there's very little point in making a guide on how to develop for pchan, on pchan.

most people who'd seriously consider making changes will go through it themselves instead of looking on /site/ for a tutorial
maybe let's set up a php and shell tutorials next, as those are also required.

AnonymousCountry code: ponychan.png, country type: customflag, valid: 12195

File: 1502510114915.png (183.88 KB, 466x425, chromia-snatch.png)

>>12134
I don't know about that. If I were stumped, this place might be one of the places I would look. It would be a choice between that and Google. Either way, we're not really hurting anyone with this thread's existence.

Anyways, I got my environment set up. If you get any complaints from node about an internal error involving the package 'fs', just delete the node_modules folder somewhere in your appdata directory. It will give you the path in the error. If you're on a linux distro, it would be under /lib/.

Ly!!TrixieCountry code: ponychan.png, country type: customflag, valid: 12197

File: 1502527945356.jpg (492.45 KB, 2208x1481, 28-768b41fd5e57fcc54ac798bb090…)

>>12195
google has only millions more possible solutions to the errors you might encounter
we're not, I suppose

!!Babs Seed ## DeveloperCountry code: ponychan.png, country type: customflag, valid: 12211

File: 1502770735703.png (32.57 KB, 128x128, char_85434.png)

Dev posting again, as there seems to be more interest than I expected in just coding in Windows. Since many people, including myself seem to be ignoring my warning, I'll elaborate on how you might set up your VM on a Windows platform.

I would suggest that you get a good package manager, preferably chocolatey. I don't know of any other package managers that are stable, other than the one that ships with Powershell on Windows 10.

Install a good terminal. I recommend either Cmder or ConEmu. As long as it's not the default Windows terminal (the one used for cmd.exe), then you're fine. You might also want to consider running your terminal as administrator by default because you'll almost always will need it.

There's also a special way you have to get vagrant to communicate with Virtualbox, and to do that, you need to install Git, configured so that ssh.exe is exposed in the path variable. You can do this via chocolatey by running the command:
choco install git --params "/GitAndUnixToolsOnPath"

Then you'd cd to the directory you want to download the source code and clone the repo with:
git clone [email protected]:ponychan/ponychan-tinyboard.git

Then install the dependencies:
choco install virtualbox vagrant

That's the basics for installing the VM but leaves out the client-end javascript as well as the nodejs environment. At that point, it might as well be uncharted territory.

I'm beginning the long journey of updating the repo so then I can let any faulty updates blow up on the VM rather than the server. If any of you guys are having problems with the VM, just drop a post in this thread.

Ly!!Trixie ## ModCountry code: ponychan.png, country type: customflag, valid: 12213

File: 1502795353310.png (244.06 KB, 615x735, 438563-trix.png)

>>12211
Cmder actually doesn't work at all with vagrant
commands to vagrant just seem to be ignored
at least on my setup.

So this setup doesn't compile js then?

Also it's worth noting under Windows 10 you have a built-in package manager which supports chocolatey repos, not sure about install options though

Usable through powershell, list of commands under
Get-Command -Module PackageManagement

!!Babs Seed ## DeveloperCountry code: ponychan.png, country type: customflag, valid: 12222

File: 1502958015445.png (164.92 KB, 350x510, Babs_Seed_navbox_crop_S3E4.png)

>>12213
>commands to vagrant just seem to be ignored
What happens when you just enter `vagrant`?

>compile js

These are just the first steps to setting up your machine. Normally on Linux you wouldn't have a problem just following through with what the readme says, but on Windows, one of the dependencies in node would complain because it can't find a bunch of things outside of node, such as Python and a C++ compiler.

I just took a second look at the module list and it looks like that dependency isn't there anymore. If the package 'node-gyp' has been phased out by its dependents, this is major progress. Maybe Windows users no longer need special treatment on these steps.


Delete Post [ ]
Edit Post
Posts on this board may be edited for 2 hours after being made.
[ home ] [ site / arch ] [ pony / oat / ef ] [ rp / fan ]